FACT++  1.0
void Fits::AddStandardColumn ( const Description desc,
const string &  dataFormat,
void *  dataPointer,
long unsigned int  numDataBytes 
)

Adds a column that exists in all FITS files.

This gives a standard variable to the file writter. This variable should not be related to the DIM service being logged.

Parameters
descthe description of the variable to add
dataFormatthe FITS data format corresponding to the variable to add.
dataPointerthe memory location where the variable is stored
numDataBytesthe number of bytes taken by the variable

Definition at line 40 of file Fits.cc.

References Description::name.

41 {
42  //check if entry already exist
43  for (vector<Description>::const_iterator it=fStandardColDesc.begin(); it != fStandardColDesc.end(); it++)
44  if (it->name == desc.name)
45  return;
46 
47  fStandardColDesc.push_back(desc);
48  fStandardFormats.push_back(dataFormat);
49  fStandardPointers.push_back(dataPointer);
50  fStandardNumBytes.push_back(numDataBytes);
51 }
vector< Description > fStandardColDesc
Definition: Fits.h:20
vector< void * > fStandardPointers
the pointers to the standard variables
Definition: Fits.h:24
std::string name
Definition: Description.h:9
vector< int > fStandardNumBytes
the number of bytes taken by each standard variable
Definition: Fits.h:26
vector< string > fStandardFormats
Format of the standard columns.
Definition: Fits.h:22