My Project
|
Public Member Functions | |
Monitor (std::string arcDir, std::string calFile, std::string host, std::string start, bool startWasSet, std::string stop, bool stopWasSet, std::string regFile) | |
Monitor (std::string arcDir, std::string calFile, std::string startMjd, std::string stopMjd) | |
Monitor (std::string host, std::string calFile) | |
virtual | ~Monitor () |
void | addRegister (std::string regmapName, std::string boardName, std::string regname, RegAspect aspect=REG_PLAIN, MonitorDataType::FormatType=MonitorDataType::FM_UNKNOWN, char *formatString=0, MonitorDataType::FormatType=MonitorDataType::FM_UNKNOWN, CoordRange *range=0) |
void | addRegister (std::string regSpec) |
gcp::control::MsReadState | readNextFrame () |
void | getRegister (std::string regmapName, std::string boardName, std::string regname, unsigned *data, CoordRange *range) |
void | getRegister (std::string regmapName, std::string boardName, std::string regname, int *data, CoordRange *range) |
void | getRegister (std::string regmapName, std::string boardName, std::string regname, unsigned long *data, CoordRange *range) |
void | getRegister (std::string regmapName, std::string boardName, std::string regname, long *data, CoordRange *range) |
void | getRegister (std::string regmapName, std::string boardName, std::string regname, float *data, CoordRange *range) |
void | getRegister (std::string regmapName, std::string boardName, std::string regname, double *data, CoordRange *range) |
void | printDoubleRegs () |
void | printUnsignedIntRegs () |
void | readRegs () |
unsigned | countFrames () |
std::vector< std::vector < double > > | readRegsAsDoubles () |
std::vector< std::vector < std::vector< MonitorDataType > > > | readRegsAsDataTypes () |
void | printRegs () |
void | printRegs2 () |
std::vector< double > | getRegsAsDoubles () |
std::vector< std::vector < MonitorDataType > > | getRegsAsDataTypes () |
std::vector < gcp::util::RegDescription > | selectedRegs () |
std::vector < gcp::util::MonitorDataType::FormatType > | selectedFormats () |
std::vector < gcp::util::MonitorDataType::FormatType > | nativeFormats () |
double | getRegAsDouble (MonitorDataType val, RegAspect aspect) |
void | run () |
void | runTest () |
double * | getCalSlotPtr (unsigned iSlot=0) |
void | reinitialize () |
void | printArrayMap (bool arcvhivedOnly) |
std::vector< std::string > | getArrayMapRegisters (bool archivedOnly) |
ArrayMap * | arrayMap () |
Static Public Member Functions | |
static double | parseDateAndTime (std::string utc) |
static MonitorDataType::FormatType | parseFormat (std::string format) |
static MonitorDataType::FormatType | formatOf (RegDescription ®, MonitorDataType::FormatType format=MonitorDataType::FM_UNKNOWN) |
gcp::util::Monitor::Monitor | ( | std::string | arcDir, |
std::string | calFile, | ||
std::string | host, | ||
std::string | start, | ||
bool | startWasSet, | ||
std::string | stop, | ||
bool | stopWasSet, | ||
std::string | regFile | ||
) |
Constructor. Generic.
gcp::util::Monitor::Monitor | ( | std::string | arcDir, |
std::string | calFile, | ||
std::string | startMjd, | ||
std::string | stopMjd | ||
) |
Constructor for just reading from the archive
gcp::util::Monitor::Monitor | ( | std::string | host, |
std::string | calFile | ||
) |
Constructor for just reading from the real-time controller
|
virtual |
Destructor.
....................................................................... Destructor.
void gcp::util::Monitor::addRegister | ( | std::string | regmapName, |
std::string | boardName, | ||
std::string | regname, | ||
RegAspect | aspect = REG_PLAIN , |
||
MonitorDataType::FormatType | = MonitorDataType::FM_UNKNOWN , |
||
char * | formatString = 0 , |
||
MonitorDataType::FormatType | = MonitorDataType::FM_UNKNOWN , |
||
CoordRange * | range = 0 |
||
) |
Add a register to the set of registers to be monitored
void gcp::util::Monitor::addRegister | ( | std::string | regSpec | ) |
Parse a register specification string
unsigned Monitor::countFrames | ( | ) |
....................................................................... Count frames
double * Monitor::getCalSlotPtr | ( | unsigned | iSlot = 0 | ) |
Return a reference to the calibrated cata for the last read frame
....................................................................... Return a reference to the calibrated cata for the last read frame
double Monitor::getRegAsDouble | ( | MonitorDataType | val, |
RegAspect | aspect | ||
) |
Return a register value as a double
....................................................................... Output a register as a double
void Monitor::getRegister | ( | std::string | regMapName, |
std::string | boardName, | ||
std::string | blockName, | ||
unsigned * | data, | ||
CoordRange * | range | ||
) |
Methods for extracting the data into arrays of different data types
....................................................................... Read a register from the latest frame as unsigned ints.
void Monitor::getRegister | ( | std::string | regMapName, |
std::string | boardName, | ||
std::string | blockName, | ||
unsigned long * | data, | ||
CoordRange * | range | ||
) |
....................................................................... Read a register from the latest frame as unsigned longs.
void Monitor::getRegister | ( | std::string | regMapName, |
std::string | boardName, | ||
std::string | blockName, | ||
long * | data, | ||
CoordRange * | range | ||
) |
....................................................................... Read a register from the latest frame as longs.
void Monitor::getRegister | ( | std::string | regMapName, |
std::string | boardName, | ||
std::string | blockName, | ||
float * | data, | ||
CoordRange * | range | ||
) |
....................................................................... Read a register from the latest frame as floats.
void Monitor::getRegister | ( | std::string | regMapName, |
std::string | boardName, | ||
std::string | blockName, | ||
double * | data, | ||
CoordRange * | range | ||
) |
....................................................................... Read a register from the latest frame as doubles
std::vector< std::vector< MonitorDataType > > Monitor::getRegsAsDataTypes | ( | ) |
....................................................................... Return a vector of register values, as datatypes
std::vector< double > Monitor::getRegsAsDoubles | ( | ) |
Get the vector of laatest values of all selected regs, cast as doubles.
....................................................................... Get the vector of laatest values of all selected regs, cast as doubles.
|
static |
Parse a date string.
....................................................................... Parse a date string of the form dd-mmm-yyyy:hh:mm:ss into a double Modified Julian date
void Monitor::printDoubleRegs | ( | ) |
....................................................................... Print the latest value of all selected regs, as doubles
void Monitor::printRegs | ( | ) |
Print the laatest values of all selected regs, according to type.
void Monitor::printUnsignedIntRegs | ( | ) |
....................................................................... Print the latest value of all selected regs, as unsigned ints
MsReadState Monitor::readNextFrame | ( | ) |
Read the next frame of data from the stream.
....................................................................... Read the next frame
void Monitor::readRegs | ( | ) |
Method to sequentially read all data frames and return the value of selected registers according to type.
....................................................................... Method to sequentially read all data frames and print the value of selected registers according to type.
std::vector< std::vector< std::vector< MonitorDataType > > > Monitor::readRegsAsDataTypes | ( | ) |
....................................................................... Method to sequentially read all data frames and return the value of selected registers as doubles.
std::vector< std::vector< double > > Monitor::readRegsAsDoubles | ( | ) |
Method to sequentially read all data frames and return the value of selected registers as doubles.
....................................................................... Method to sequentially read all data frames and return the value of selected registers as doubles.
void Monitor::reinitialize | ( | ) |
....................................................................... (Re)initialize
void Monitor::run | ( | void | ) |
Run this object in interactive mode.
....................................................................... Run in interactive mode.