areaDetector  3-13
EPICS areaDetector framework
Public Member Functions | List of all members
ADnEDFile Class Reference

#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...
 

Constructor & Destructor Documentation

◆ ADnEDFile()

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.

◆ ~ADnEDFile()

ADnEDFile::~ADnEDFile ( )
virtual

Destructor.

This will close the file handle.

Member Function Documentation

◆ closeFile()

void ADnEDFile::closeFile ( void  )

◆ getSize()

epicsUInt32 ADnEDFile::getSize ( void  )

Return the size of the file read from the first line.

Returns
size

◆ readDataIntoDoubleArray()

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).

Parameters
pArrayPointer to array of epicsFloat64.

◆ readDataIntoIntArray()

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).

Parameters
pArrayPointer to array of epicsUInt32.

The documentation for this class was generated from the following files: