372 (
"Loads the given Fits file");
375 (
"Unloads the given Fits file");
380 (
"List the columns that were loaded from that file");
383 (
"Add a given column to the dumping list");
386 (
"Clear the dumping list");
389 (
"Perform the dump of columns data, based on the to dump list");
392 (
"Gives the name of the Fits file to be loaded");
395 (
"Gives the name of the Table to be loaded");
398 (
"Set the precision of the ofstream, i.e. the number of significant digits being outputted");
401 (
"Set the name of the outputted file.");
int LoadPlease()
Transition from ready to fileLoaded.
EventImp & AddEvent(const std::string &name, const std::string &states, const std::string &fmt)
static const char * fLoadFits
Define command names.
int SetOFStreamPrecisionPlease(const Event &)
Set the ofstream precision.
Mainloop running, state machine in operation.
int UnloadPlease()
Transition from fileLoaded to ready.
int DoDumpPlease(const Event &)
Perform the dumping, based on the current dump list.
static const char * fListColumns
static const char * fConfigTableName
static const char * fDumpColumns
StateMachineDim(std::ostream &out=std::cout, const std::string &name="DEFAULT")
static const char * fConfigFileName
static const char * fDoDump
int SetFileOutPlease(const Event &)
Set the name of the output file.
static const char * fUnloadFits
int ClearDumpListPlease(const Event &)
Clear the dump list.
CCfits::FITS * fFile
FITS pointer.
int ListColumnsPlease(const Event &)
Lists the loaded column names.
int AddDumpColumnsPlease(const Event &)
Add a column name to the dump list.
int ConfigFileNamePlease(const Event &)
Set the name of the Fits file to be loaded.
int fStreamPrecision
Precision of the ofstream. Used to output a given number of significant digits for floats or doubles...
static const char * fConfigFileOutName
int ConfigTableNamePlease(const Event &)
Set the name of the table to be loaded.
static const char * fConfigPrecName
static const char * fClearDumpList
bool AddStateName(const int state, const std::string &name, const std::string &doc="")