DataIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
OnlineCommand.h
Go to the documentation of this file.
1 #ifndef ONLINECOMMAND_H
2 #define ONLINECOMMAND_H
3 
4 // CORE INCLUDES
5 #include "core/common/ESingleton.h"
6 
7 namespace EM
8 {
9  namespace Strojcek
10  {
11  namespace VstupneUdaje
12  {
13  namespace Turnusy
14  {
15  class OnlineCommand : public ESingleton<OnlineCommand>
16  {
17  public:
18  typedef unsigned CommandNumber;
19  typedef unsigned LineNumber;
20  typedef unsigned TripNumber;
21 
23  {
24  InputFileMissing = 0, // file existed -> doesn't exist anymore
25  InputFileUpdated = 1, // file existed -> file changed / file didn't exist -> file exists
26  NoChange = 2, // file existed -> file didn't change / file didn't exist -> file doesn't exist
27  InputFileFilenameChanged = 3, // file existed -> new file for next day (which is already today) is available ( previous file is no longer valid )
28  YesterdayCommandUpdated = 4 // file exists, no changes are present, one or more yesterday commands reached its end time
29  };
30 
31  bool Check( ChangeType &change );
32  bool Process( unsigned int dailyIdentificationRecordNumber = 0, bool force = false );
33  bool WasCommandChanged( const CommandNumber commandNumber );
34 
35 #ifndef WIN32
37 #endif
38 
39  private:
41 
42  class DataClass;
43  DataClass *d;
44 
46 
47  friend class ESingleton<OnlineCommand>;
48 
49  OnlineCommand();
50  virtual ~OnlineCommand();
51  };
52  }
53  }
54  }
55 }
56 
57 #endif // ONLINECOMMAND_H
unsigned LineNumber
Definition: OnlineCommand.h:19
bool Process(unsigned int dailyIdentificationRecordNumber=0, bool force=false)
Definition: OnlineCommand.cpp:2396
void DeleteOldOnlineCommandFiles()
Definition: OnlineCommand.cpp:2450
bool Check(ChangeType &change)
Definition: OnlineCommand.cpp:2366
unsigned TripNumber
Definition: OnlineCommand.h:20
bool WasCommandChanged(const CommandNumber commandNumber)
Definition: OnlineCommand.cpp:2444
Class ECol : Objekt je predok pre vsetky nasledujuce kolekcie
Definition: ColReader.h:15
unsigned CommandNumber
Definition: OnlineCommand.h:18