FACT++  1.0
int FitsLoader::AddDumpColumnsPlease ( const Event evt)
private

Add a column name to the dump list.

Add a given column name to the list of columns to dump

Parameters
evtthe event transporting the column name

Definition at line 500 of file fitsloader.cc.

References MessageImp::Error(), fColMap, fDumpList, StateMachineImp::GetCurrentState(), EventImp::GetText(), and MessageImp::Message().

Referenced by FitsLoader().

501 {
502  string evtText(evt.GetText());
503  //TODO check that this column indeed exist in the file
504  if (fColMap.find(evtText) != fColMap.end())
505  fDumpList.push_back(evtText);
506  else
507  Error("Could not find column " + evtText + " int table");
508  Message("New dump list:");
509  for (vector<string>::iterator it=fDumpList.begin(); it != fDumpList.end(); it++)
510  Message(*it);
511  return GetCurrentState();
512 }
map< string, CCfits::Column * > fColMap
map between the column names and their CCfits objects
Definition: fitsloader.cc:82
int GetCurrentState() const
return the current state of the machine
const char * GetText() const
Definition: EventImp.h:88
int Error(const std::string &str)
Definition: MessageImp.h:49
vector< string > fDumpList
List of the column names to be dumped.
Definition: fitsloader.cc:84
int Message(const std::string &str)
Definition: MessageImp.h:46

+ Here is the call graph for this function:

+ Here is the caller graph for this function: