areaDetector
3-13
EPICS areaDetector framework
|
#include <ADnEDFile.h>
Public Member Functions | |
ADnEDFile (const char *fileName) | |
Constructor. More... | |
virtual | ~ADnEDFile () |
Destructor. More... | |
void | closeFile (void) |
epicsUInt32 | getSize (void) |
Return the size of the file read from the first line. More... | |
void | readDataIntoIntArray (epicsUInt32 **pArray) |
Read the rest of file line by line. More... | |
void | readDataIntoDoubleArray (epicsFloat64 **pArray) |
Read the rest of file line by line. More... | |
ADnEDFile::ADnEDFile | ( | const char * | fileName | ) |
Constructor.
This will open the file and try to read the length from the first line. If any error is encountered then a std::runtime_error exception is thrown.
|
virtual |
Destructor.
This will close the file handle.
void ADnEDFile::closeFile | ( | void | ) |
epicsUInt32 ADnEDFile::getSize | ( | void | ) |
Return the size of the file read from the first line.
void ADnEDFile::readDataIntoDoubleArray | ( | epicsFloat64 ** | pArray | ) |
Read the rest of file line by line.
Convert each number to an double, and populate array. It is expected that the array has already been allocated with at least a number of elements (returned by the ADnEDFile::getSize() function).
pArray | Pointer to array of epicsFloat64. |
void ADnEDFile::readDataIntoIntArray | ( | epicsUInt32 ** | pArray | ) |
Read the rest of file line by line.
Convert each number to an int, and populate array. It is expected that the array has already been allocated with at least a number of elements (returned by the ADnEDFile::getSize() function).
pArray | Pointer to array of epicsUInt32. |