ISIS Logo
INSTETC
INSTETC IOC
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
instetcDriver Class Reference

#include <instetcDriver.h>

Inheritance diagram for instetcDriver:
Inheritance graph

Public Member Functions

 instetcDriver (const char *portName, const char *filePath, const int lineCount, double pollingPeriod)
 Constructor for the lvDCOMDriver class. More...
 

Static Public Member Functions

static void pollerThreadC (void *arg)
 

Private Member Functions

int getLastLines (std::string &the_lines)
 
void updateText (const std::string &text)
 
void pollerThread (const std::string &filePath, int lineCount, double pollingPeriod)
 

Private Attributes

std::string filePath
 
int lineCount
 
double pollingPeriod
 
time_t file_mod
 
int P_Text
 

Detailed Description

Definition at line 6 of file instetcDriver.h.

Constructor & Destructor Documentation

instetcDriver::instetcDriver ( const char *  portName,
const char *  filePath,
const int  lineCount,
double  pollingPeriod 
)

Constructor for the lvDCOMDriver class.

Calls constructor for the asynPortDriver base class.

Parameters
[in]dcomintDCOM interface pointer created by lvDCOMConfigure()
[in]portNameThe name of the asyn driver port we will create.

Definition at line 39 of file instetcDriver.cpp.

References driverName, P_Text, P_TextString, and pollerThreadC().

Member Function Documentation

int instetcDriver::getLastLines ( std::string &  the_lines)
private

Definition at line 65 of file instetcDriver.cpp.

References file_mod, filePath, and lineCount.

Referenced by pollerThread().

void instetcDriver::pollerThread ( const std::string &  filePath,
int  lineCount,
double  pollingPeriod 
)
private

Definition at line 131 of file instetcDriver.cpp.

References getLastLines(), LEN_BUFFER, and updateText().

Referenced by pollerThreadC().

void instetcDriver::pollerThreadC ( void *  arg)
static

Definition at line 123 of file instetcDriver.cpp.

References filePath, lineCount, pollerThread(), and pollingPeriod.

Referenced by instetcDriver().

void instetcDriver::updateText ( const std::string &  text)
private

Definition at line 145 of file instetcDriver.cpp.

References P_Text.

Referenced by pollerThread().

Member Data Documentation

time_t instetcDriver::file_mod
private

Definition at line 16 of file instetcDriver.h.

Referenced by getLastLines().

std::string instetcDriver::filePath
private

Definition at line 13 of file instetcDriver.h.

Referenced by getLastLines(), and pollerThreadC().

int instetcDriver::lineCount
private

Definition at line 14 of file instetcDriver.h.

Referenced by getLastLines(), and pollerThreadC().

int instetcDriver::P_Text
private

Definition at line 18 of file instetcDriver.h.

Referenced by instetcDriver(), and updateText().

double instetcDriver::pollingPeriod
private

Definition at line 15 of file instetcDriver.h.

Referenced by pollerThreadC().


The documentation for this class was generated from the following files:
Copyright © 2013 Science and Technology Facilities Council | Generated by   doxygen 1.8.5