DataIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ECisloOdpoctu.h
Go to the documentation of this file.
1 #if !defined(ECisloOdpoctu_D0245710_24AA_4796_AC03_4016609B29A3__INCLUDED_)
2 #define ECisloOdpoctu_D0245710_24AA_4796_AC03_4016609B29A3__INCLUDED_
3 
4 #include "dataio/DataIODefines.h"
5 #include "dataio/dataoutput/EAbstraktnyZaznam.h"
6 #include "core/common/eplatform.h"
7 #include <vector>
8 
9 #define VERZIAODPOCTU 6508
10 
11 namespace EM
12 {
13  namespace Strojcek
14  {
15  namespace StatistikaStrojcek
16  {
17  class SAM;
18  class Validator;
19  class ERootStatistika;
20 
22  {
23  public:
24  ECisloOdpoctu();
25  virtual ~ECisloOdpoctu();
26 
27  char *GetCisloStrojceka();
28  char *GetCisloCitacky();
29  unsigned long GetCisloPracoviska();
30  unsigned long GetCisloOdpoctu();
31  char *GetVerziaOdpoctu();
32  char *GetVerziaAplikacie();
33  unsigned long GetCisloZavodu();
34  unsigned short GetBranchID();
35  unsigned long GetAllowedCompaniesValidityStart();
36  unsigned long GetEventsValidityStart();
37  std::vector<SAM *> GetSAMCollection();
38  std::vector<Validator *> GetValidatorCollection();
39 
40  void SetObuNumber( const char *newVal );
41  void SetCardReaderNumber( const char *newVal );
42  void SetCisloPracoviska( unsigned long newVal );
43  void SetCisloOdpoctu( unsigned long newVal );
44  void SetVerziaOdpoctu( char *newVal );
45  void SetApplicationVersion( const char *newVal );
46  void SetCisloZavodu( unsigned long newVal );
47  void SetBranchID( unsigned short branchID );
48  void SetAllowedCompaniesValidityStart( unsigned long allowedCompaniesValidityStart );
49  void SetEventsValidityStart( unsigned long eventsValidityStart );
50  void AddSAM( SAM *sam );
51  void AddValidator( Validator *validator );
52 
53  bool write();
54  bool read();
55 
56  virtual short getChksum();
57 
58  private:
59  enum
60  {
61  MaxCharsCisloStrojceka = 10,
62  MaxCharsCisloCitacky = 10,
63  MaxCharsVerziaOdpoctu = 15,
64  MaxCharsVerziaAplikacie = 15
65  };
66 
67  class DataClass;
68  DataClass *d;
69  };
70  }
71  }
72 }
73 
74 #endif
Class ECol : Objekt je predok pre vsetky nasledujuce kolekcie
Definition: ColReader.h:15
Definition: EAbstraktnyZaznam.h:16
#define DATAIO_API
Definition: DataIODefines.h:10