ISIS Logo
INSTETC
INSTETC IOC
instetcDriver.h
Go to the documentation of this file.
1 #ifndef INSTETCDRIVER_H
2 #define INSTETCDRIVER_H
3 
4 #include "asynPortDriver.h"
5 
6 class instetcDriver : public asynPortDriver
7 {
8  public:
9  instetcDriver(const char* portName, const char* filePath, const int lineCount, double pollingPeriod);
10  static void pollerThreadC(void* arg);
11 
12  private:
13  std::string filePath;
14  int lineCount;
15  double pollingPeriod;
16  time_t file_mod;
17 
18  int P_Text; //string
19 
20  int getLastLines(std::string& the_lines);
21  void updateText(const std::string& text);
22 
23  #define FIRST_INSTETC_PARAM P_Text
24  #define LAST_INSTETC_PARAM P_Text
25 
26  void pollerThread(const std::string& filePath, int lineCount, double pollingPeriod);
27 };
28 
29 #define NUM_INSTETC_PARAMS (&LAST_INSTETC_PARAM - &FIRST_INSTETC_PARAM + 1)
30 #define P_TextString "TEXT"
31 
32 #endif /* INSTETCDRIVER_H */
void pollerThread(const std::string &filePath, int lineCount, double pollingPeriod)
double pollingPeriod
Definition: instetcDriver.h:15
std::string filePath
Definition: instetcDriver.h:13
static void pollerThreadC(void *arg)
int getLastLines(std::string &the_lines)
instetcDriver(const char *portName, const char *filePath, const int lineCount, double pollingPeriod)
Constructor for the lvDCOMDriver class.
void updateText(const std::string &text)
Copyright © 2013 Science and Technology Facilities Council | Generated by   doxygen 1.8.5