DataIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
EPrikaz.h
Go to the documentation of this file.
1 #if !defined(AFX_PRIKAZ_H__50C0BA28_8334_4758_8788_FA0954E425BB__INCLUDED_)
2 #define AFX_PRIKAZ_H__50C0BA28_8334_4758_8788_FA0954E425BB__INCLUDED_
3 
4 #include <vector>
5 #include "dataio/DataIODefines.h"
6 #include "core/common/Node.h"
7 #include "core/common/EDate.h"
8 
9 namespace EM
10 {
11  namespace Strojcek
12  {
13  namespace VstupneUdaje
14  {
15  namespace Turnusy
16  {
17  class EPrikazKurzCol;
18  class EPrikazPlatnostCol;
19  class ERootDoprava;
20  class EPrikazCol;
21 
22  class DATAIO_API EPrikaz : public ENode
23  {
24  public:
26  {
27  Original = 0, // original command - command was read from input data and wasn't modified
28  Overwritten = 1, // operational plan command that replaced existing command
29  Inserted = 2 // operational plan command which was appended to commands collection (command with this number did not exist)
30  };
31 
32  EPrikaz( EPrikazCol *owner );
33  virtual ~EPrikaz();
34 
35  EPrikazCol *GetOwner();
36  EPrikazKurzCol *GetPrikazKurzCol();
37  EPrikazPlatnostCol *GetPrikazPlatnostCol();
38 
39  long GetCislo();
40  char *GetNazov();
41  long GetPrikazKurzyOffset();
42  long GetPrikazPlatnostOffset();
43  long GetPrevadzkaID();
44 
45  void SetNazov( const char *nazov );
46  void SetPrikazID( long cislo );
47  void SetPrikazKurzOffset( long prikazKurzOffset );
48  void SetPrikazPlatnostOffset( long prikazPlatnostOffset );
49  void SetPrevadzkaID( long prevadzkaID );
50 
51  unsigned short GetValid1();
52  void SetValid1( unsigned short valid1 );
53 
54  unsigned short Porovnaj( const char *dalsi );
55  bool IsValidByDay( EM::Common::EDate date );
56  bool IsValidByPeriod( Common::EDate startDate, Common::EDate endDate );
57  long GetPoradieKurzuByValidation( EM::Common::EDate date, long time );
58 
69  std::vector<int> *GetValidByPeriod( EM::Common::EDate dateFrom, EM::Common::EDate dateTo );
70  EPrikaz *GetLeft();
71  EPrikaz *GetRight();
72 
73  CommandType GetType() const;
74  void SetType( const CommandType commandType );
75 
76  private:
77  class DataClass;
78  DataClass *d;
79  };
80  }
81  }
82  }
83 }
84 
85 #endif
Class ECol : Objekt je predok pre vsetky nasledujuce kolekcie
Definition: ColReader.h:15
#define DATAIO_API
Definition: DataIODefines.h:10