areaDetector  3-14
EPICS areaDetector framework
ADnEDFile.h
Go to the documentation of this file.
1 
2 //Documentation in ADnEDFile.cpp file
3 
4 #ifndef ADNEDFILE_H
5 #define ADNEDFILE_H
6 
7 #include "epicsTypes.h"
8 
9 #define ADNEDFILE_MAX_STRING 256
10 
11 class ADnEDFile {
12 
13  public:
14  ADnEDFile(const char *fileName);
15  virtual ~ADnEDFile();
16 
17  void closeFile(void);
18  epicsUInt32 getSize(void);
19  void readDataIntoIntArray(epicsUInt32 **pArray);
20  void readDataIntoDoubleArray(epicsFloat64 **pArray);
21 
22  private:
23 
24  //Private dynamic
25  epicsUInt32 m_Size;
26  FILE *p_FILE;
27  char m_fileName[ADNEDFILE_MAX_STRING];
28 
29  //Private static const
30  static const epicsUInt32 s_ADNEDFILE_MAX_STRING;
31  static const epicsUInt32 s_ADNEDFILE_MAX_LINES;
32  static const epicsUInt32 s_ADNEDFILE_STRTOL_BASE;
33 
34 };
35 
36 #endif //ADNEDFILE_H
#define ADNEDFILE_MAX_STRING
Definition: ADnEDFile.h:9
Definition: ADnEDFile.h:11
epicsUInt32 getSize(void)
Return the size of the file read from the first line.
Definition: ADnEDFile.cpp:107
void closeFile(void)
void readDataIntoIntArray(epicsUInt32 **pArray)
Read the rest of file line by line.
Definition: ADnEDFile.cpp:120
ADnEDFile(const char *fileName)
Constructor.
Definition: ADnEDFile.cpp:44
void readDataIntoDoubleArray(epicsFloat64 **pArray)
Read the rest of file line by line.
Definition: ADnEDFile.cpp:172
virtual ~ADnEDFile()
Destructor.
Definition: ADnEDFile.cpp:88