ISLogFileBase.h
Go to the documentation of this file.
1 /*
2 MIT LICENSE
3 
4 Copyright (c) 2014-2021 Inertial Sense, Inc. - http://inertialsense.com
5 
6 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions :
7 
8 The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
9 
10 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
11 */
12 
13 #ifndef _IS_SDK_IS_LOG_FILE_BASE_H_
14 #define _IS_SDK_IS_LOG_FILE_BASE_H_
15 
16 #include "ISConstants.h"
17 #include <cstddef>
18 #include <cstdarg>
19 #include <string>
20 
21 
23 {
24 public:
25  virtual ~cISLogFileBase() {}
26 
27  virtual bool open(const char* filePath, const char* mode) = 0;
28  virtual bool close() = 0;
29  virtual bool flush() = 0;
30  virtual bool good() = 0;
31  virtual bool isOpened() = 0;
32 
33  virtual int putch(char ch) = 0;
34  virtual int puts(const char* str) = 0;
35  virtual std::size_t write(const void* bytes, std::size_t len) = 0;
36  virtual int lprintf(const char* format, ...) = 0;
37  virtual int vprintf(const char* format, va_list args) = 0;
38 
39  virtual int getch() = 0;
40  virtual std::size_t read(void* bytes, std::size_t len) = 0;
41 };
42 
43 
44 #endif //_IS_SDK_IS_LOG_FILE_BASE_H_
virtual std::size_t read(void *bytes, std::size_t len)=0
virtual bool close()=0
virtual bool open(const char *filePath, const char *mode)=0
virtual int lprintf(const char *format,...)=0
virtual int putch(char ch)=0
virtual ~cISLogFileBase()
Definition: ISLogFileBase.h:25
virtual int puts(const char *str)=0
virtual int vprintf(const char *format, va_list args)=0
virtual std::size_t write(const void *bytes, std::size_t len)=0
virtual bool isOpened()=0
virtual bool flush()=0
virtual bool good()=0
virtual int getch()=0


inertial_sense_ros
Author(s):
autogenerated on Sun Feb 28 2021 03:17:57