DataIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
EUdalostVozidlo.h
Go to the documentation of this file.
1 #ifndef EUDALOSTVOZIDLO_H
2 #define EUDALOSTVOZIDLO_H
3 
4 #include "dataio/DataIODefines.h"
5 #include "dataio/dataoutput/EAbstraktnyZaznam.h"
6 #include "dataio/dataoutput/EStatistikaStruct.h"
7 #include "dataio/dataoutput/ECestovnyListok.h"
8 
9 #define PRICHOD_NA_ZASTAVKU 1
10 #define PRICHOD_NA_ZASTAVKU_GPS 2
11 #define ODCHOD_ZO_ZASTAVKY_GPS 3
12 #define PRICHOD_NA_ZASTAVKU_MANUALNE 4
13 #define ODCHOD_ZO_ZASTAVKy_MANUALNE 5
14 #define PRICHOD_NA_ZASTAVKU_OTVORENIE_DVERI 6
15 #define ODCHOD_ZO_ZASTAVKY_ZATVORENIE_DVERI 7
16 #define HAVARIA_ZACIATOK 8
17 #define HAVARIA_KONIEC 9
18 #define AUTOMATICKE_VYPNUTIE_STROJCEKA 10
19 #define AUTOMATICKE_ZAPNUTIE_STROJCEKA 11
20 #define UDALOST_OTVORENIE_DVERI 12
21 #define UDALOST_ZATVORENIE_DVERI 13
22 #define SPOJ_NA_ZAVOLANIE 14
23 
24 namespace EM
25 {
26  namespace Strojcek
27  {
28  namespace StatistikaStrojcek
29  {
30  class EUdalostVozidloCol;
31  class EStatistikaFileSystem;
32 
33  class DATAIO_API EUdalostVozidlo : public EAbstraktnyZaznam
34  {
35  public:
36  EUdalostVozidlo();
37  virtual ~EUdalostVozidlo();
38 
39  float getSuradnicaX();
40  float getSuradnicaY();
41  unsigned long getDatumCas();
42  unsigned long getZastavkaID();
43  unsigned char getZastavkaPoradie();
44  unsigned char getTypUdalostiVozidlo();
45 
46  void setSuradnicaX( float newVal );
47  void setSuradnicaY( float newVal );
48  void setDatumCas( unsigned long newVal );
49  void setZastavkaID( unsigned long newVal );
50  void setZastavkaPoradie( unsigned char newVal );
51  void setTypUdalostiVozidlo( unsigned char newVal );
52 
53  EUdalostVozidloCol *getOwner();
54  void setOwner( EUdalostVozidloCol *newVal );
55 
56  bool write();
57  bool read();
58  VystupneData *SendUdalost();
59 
60  virtual short getChksum();
61 
62  private:
63  class DataClass;
64  DataClass *d;
65  };
66  }
67  }
68 }
69 
70 #endif
Class ECol : Objekt je predok pre vsetky nasledujuce kolekcie
Definition: ColReader.h:15
#define DATAIO_API
Definition: DataIODefines.h:10