ISLogFile.h
Go to the documentation of this file.
1 //
2 // Created by robb on 11/5/18.
3 //
4 
5 #ifndef _IS_SDK_IS_LOG_FILE_H_
6 #define _IS_SDK_IS_LOG_FILE_H_
7 
8 #include "ISLogFileBase.h"
9 
10 
11 
12 class cISLogFile : public cISLogFileBase
13 {
14 public:
15  cISLogFile();
16  cISLogFile(const std::string& filePath, const char* mode);
17  cISLogFile(const char* filePath, const char* mode);
18  ~cISLogFile();
19 
20  bool open(const char* filePath, const char* mode) OVERRIDE;
21  bool close() OVERRIDE;
22  bool flush() OVERRIDE;
23  bool good() OVERRIDE;
24  bool isOpened() OVERRIDE;
25 
26  int putch(char ch) OVERRIDE;
27  int puts(const char* str) OVERRIDE;
28  std::size_t write(const void* bytes, std::size_t len) OVERRIDE;
29  int lprintf(const char* format, ...) OVERRIDE;
30  int vprintf(const char* format, va_list args) OVERRIDE;
31 
32  int getch() OVERRIDE;
33  std::size_t read(void* bytes, std::size_t len) OVERRIDE;
34 
35 private:
36  FILE *m_file;
37 };
38 
39 
40 #endif //_IS_SDK_IS_LOG_FILE_H_
std::size_t read(void *bytes, std::size_t len) OVERRIDE
Definition: ISLogFile.cpp:153
bool close() OVERRIDE
Definition: ISLogFile.cpp:41
#define OVERRIDE
Definition: ISConstants.h:423
std::size_t write(const void *bytes, std::size_t len) OVERRIDE
Definition: ISLogFile.cpp:107
int putch(char ch) OVERRIDE
Definition: ISLogFile.cpp:83
bool isOpened() OVERRIDE
Definition: ISLogFile.cpp:78
FILE * m_file
Definition: ISLogFile.h:36
int puts(const char *str) OVERRIDE
Definition: ISLogFile.cpp:95
bool good() OVERRIDE
Definition: ISLogFile.cpp:66
int getch() OVERRIDE
Definition: ISLogFile.cpp:140
int vprintf(const char *format, va_list args) OVERRIDE
Definition: ISLogFile.cpp:129
bool flush() OVERRIDE
Definition: ISLogFile.cpp:55
int lprintf(const char *format,...) OVERRIDE
Definition: ISLogFile.cpp:119
bool open(const char *filePath, const char *mode) OVERRIDE
Definition: ISLogFile.cpp:35


inertial_sense_ros
Author(s):
autogenerated on Sat Sep 19 2020 03:19:04