My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
gcp::util::DirfileWriter::Register Struct Reference

Public Types

enum  Type {
  NONE = 0x0, UCHAR = 0x1, CHAR = 0x2, BOOL = 0x4,
  USHORT = 0x8, SHORT = 0x10, UINT = 0x20, INT = 0x40,
  ULONG = 0x80, LONG = 0x100, FLOAT = 0x200, DOUBLE = 0x400,
  COMPLEX = 0x800
}
 

Public Member Functions

 Register (std::string name, unsigned char *base, unsigned startEl, unsigned nEl, Type type, bool writeIndex, unsigned nBuffer)
 
 Register (const Register &reg)
 
virtual ~Register ()
 
int open (char *dir)
 
void close ()
 
void flush ()
 
int write ()
 
std::string format ()
 
unsigned sizeOf (Type type)
 

Public Attributes

std::string name_
 
void * ptr_
 
unsigned nByte_
 
unsigned nBytePerEl_
 
unsigned nEl_
 
int fd_
 
unsigned nBuffer_
 
unsigned iBuffer_
 
Type type_
 
std::string format_
 
std::vector< unsigned char > bytes_
 

Constructor & Destructor Documentation

DirfileWriter::Register::Register ( std::string  name,
unsigned char *  base,
unsigned  startEl,
unsigned  nEl,
Type  type,
bool  writeIndex,
unsigned  nBuffer 
)

....................................................................... Constructor for Register

DirfileWriter::Register::Register ( const Register reg)

....................................................................... Copy constructor for Register

DirfileWriter::Register::~Register ( )
virtual

....................................................................... Destructor for Register

Member Function Documentation

void DirfileWriter::Register::close ( )

....................................................................... Close any file currently associated with this register

void DirfileWriter::Register::flush ( )

....................................................................... Flush any file currently associated with this register

std::string DirfileWriter::Register::format ( )

....................................................................... Output a dirfile-style format flag for this register

int DirfileWriter::Register::open ( char *  dir)

....................................................................... Open a file for this register in the requested directory

unsigned DirfileWriter::Register::sizeOf ( Type  type)

....................................................................... Return the size, in bytes, of the requested type

int DirfileWriter::Register::write ( )

....................................................................... Write the latest value to the file


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