DataIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ERootDataIO.h
Go to the documentation of this file.
1 #if !defined(EA_0F9E372B_8AAB_49eb_B601_E3B7E80D999C__INCLUDED_)
2 #define EA_0F9E372B_8AAB_49eb_B601_E3B7E80D999C__INCLUDED_
3 
4 // SYSTEM INCLUDES
5 #include <string>
6 
7 // BASE INCLUDES
8 #include "dataio/DataIODefines.h"
9 #include "dataio/datainput/OnlineCommand.h"
10 
11 #if !defined(NOT_IMPLEMENTED_VYPOCET_CENY)
12 #include "dataio/datainput/EVypocetCeny.h"
13 #endif
14 
15 namespace EM
16 {
17  namespace Strojcek
18  {
19  namespace VstupneUdaje
20  {
21  namespace Tabule
22  {
23  class ERootTabule;
24  }
25  namespace Nastavenia
26  {
27  class ERootNastavenia;
28  }
29  namespace TarifnySystem
30  {
31  class ERootTarifnySystem;
32  }
33  namespace Turnusy
34  {
35  class ERootDoprava;
36  }
37 
38  class ECustomPropertyValue;
39 
41  {
42  private:
43  static ERootDataIO *mInstance;
44 
45  public:
46  ERootDataIO( char *path );
47  virtual ~ERootDataIO();
48 
49  ERootCP *GetRootCP();
50  Turnusy::ERootDoprava *GetRootDoprava();
51  Nastavenia::ERootNastavenia *GetRootNastavenia();
52  Tabule::ERootTabule *GetRootTabule();
53  TarifnySystem::ERootTarifnySystem *GetRootTarifnySystem();
54  ECustomPropertyValue *GetCustomPropertyValue( short tableID, short id1, short id2, short id3, short customPropertyType );
55 
56  static ERootDataIO *GetInstance();
57  static void SetInstance( ERootDataIO *instance );
58  static std::string ToMoney( double value );
59  static double KreditToMoney( long kredit );
60 
61  char *GetPath();
62 
63  void SetOnlineDataPath( const char *onlinePath );
64  std::string GetOnlineDataPath();
65 
66 #if !defined(NOT_IMPLEMENTED_VYPOCET_CENY)
67  EVypocetCeny *GetVypocetCeny();
68 #endif
69 
70  void SetIgnoreByways( bool ignoreByways );
71  bool GetIgnoreByways();
72 
73  private:
74  class DataClass;
75  DataClass *d;
76  };
77  }
78  }
79 }
80 
81 #endif
Definition: ERootDataIO.h:40
Definition: EVypocetCeny.h:69
Definition: ECustomPropertyValue.h:13
Class ECol : Objekt je predok pre vsetky nasledujuce kolekcie
Definition: ColReader.h:15
#define DATAIO_API
Definition: DataIODefines.h:10