Implements the Stop and Reset transitions. Attempts to close any openned file.
2155 Debug(
"Going to the Ready state...");
2170 for (map<string, SubscriptionType>::iterator j =
i->second.begin(); j !=
i->second.end(); j++)
2172 if (j->second.nightlyFile.IsOpen())
2173 j->second.nightlyFile.Close();
Mainloop running, state machine in operation.
int GetCurrentState() const
return the current state of the machine
void NotifyOpenedFile(const string &name, int type, DimDescribedService *service)
int Debug(const std::string &str)
both files openned and writing
bool fDebugIsOn
configuration flags
int StopRunLogging()
from waiting to logging transition
string fFilePath
ofstream for the Nightly report file
DimDescribedService * fOpenedNightlyFiles
Service for opened files.
void CreateFitsGrouping(map< string, vector< string > > &filesToGroup)
creates a group fits file based on a list of files to be grouped
DimDescribedService * fNumSubAndFits
SubscriptionsListType fServiceSubscriptions
All the services to which we have subscribed to, sorted by server name.
Nightly file openned and writing.
map< string, vector< string > > fOpenedNightlyFits
vectors to keep track of opened Fits files, for grouping purposes.
string CompileFileNameWithPath(const string &path, const string &service, const string &extension)
Get the digits of year, month and day for filenames and paths.
waiting for the run number to open the run file