DataIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
EGrTabula.h
Go to the documentation of this file.
1 #if !defined(AFX_TABULA_H__990E11F5_EFBC_46AF_A6ED_2CCAB8C1107B__INCLUDED_)
2 #define AFX_TABULA_H__990E11F5_EFBC_46AF_A6ED_2CCAB8C1107B__INCLUDED_
3 
4 #if _MSC_VER > 1000
5 #pragma once
6 #endif // _MSC_VER > 1000
7 
8 #include "core/common/EMObject.h"
9 #include "core/common/Array.h"
10 
11 class EGrRootTabula;
12 class EGrTabule;
13 
24 class EGrTabula : public EEMObject
25 {
26  EGrRootTabula *mRoot;
27  EGrTabule *mOwner;
28 
29  char mTabula;
30  char mPocetRiadkov;
31  unsigned short mText[3];
32  char mZobrazenie[3];
33  char mText2[3];
34  char mRezim;
35  char mCas;
36  char mRezerva;
37  char mText1[3];
38 
39 public:
40  EGrTabula( EGrRootTabula *root, EGrTabule *owner );
41  virtual ~EGrTabula();
42 
43  char GetTabula()
44  {
45  return mTabula;
46  }
47 
49  {
50  return mPocetRiadkov;
51  }
52 
53  unsigned short GetText( unsigned short index )
54  {
55  return mText[index];
56  }
57 
58  char GetZobrazenie( unsigned short index )
59  {
60  return mZobrazenie[index];
61  }
62 
63  char GetText2( unsigned short index )
64  {
65  return mText2[index];
66  }
67 
68  char GetRezim()
69  {
70  return mRezim;
71  }
72 
73  char GetCas()
74  {
75  return mCas;
76  }
77 
78  char GetRezerva()
79  {
80  return mRezerva;
81  }
82 
83  char GetText1( unsigned short index )
84  {
85  return mText1[index];
86  }
87 
88  void SetTabula( char vData )
89  {
90  mTabula = vData;
91  }
92 
93  void SetPocetRiadkov( char vData )
94  {
95  mPocetRiadkov = vData;
96  }
97 
98  void SetText( unsigned short index, unsigned short vData )
99  {
100  mText[index] = vData;
101  }
102 
103  void SetZobrazenie( unsigned short index, char vData )
104  {
105  mZobrazenie[index] = vData;
106  }
107 
108  void SetText2( unsigned short index, char vData )
109  {
110  mText2[index] = vData;
111  }
112 
113  void SetRezim( char vData )
114  {
115  mRezim = vData;
116  }
117 
118  void SetCas( char vData )
119  {
120  mCas = vData;
121  }
122 
123  void SetRezerva( char vData )
124  {
125  mRezerva = vData;
126  }
127 
128  void SetText1( unsigned short index, char vData )
129  {
130  mText1[index] = vData;
131  }
132 
134  {
135  return mOwner;
136  }
137 };
138 
139 
151 class EGrTabule : public EArray
152 {
153  EGrRootTabula *mRoot;
154  EGrRootTabula *mOwner;
155 
156 public:
157  EGrTabule( EGrRootTabula *root, EGrRootTabula *owner );
158  virtual ~EGrTabule();
159 
161  {
162  return mOwner;
163  }
164 
165  EGrTabula *Add( char tabula, char pocetRiadkov, unsigned short *text, char *zobrazenie, char *text2, char rezim, char cas, char rezerva, char *text1 );
166  virtual long ReadData( FILE *file );
167 };
168 
169 #endif // !defined(AFX_TABULA_H__990E11F5_EFBC_46AF_A6ED_2CCAB8C1107B__INCLUDED_)
170 
171 
void SetZobrazenie(unsigned short index, char vData)
Definition: EGrTabula.h:103
virtual ~EGrTabule()
Definition: EGrTabula.cpp:36
void SetText2(unsigned short index, char vData)
Definition: EGrTabula.h:108
EGrRootTabula * GetOwner()
Definition: EGrTabula.h:160
Class ETabula : Prvok zoznamu tabul.
Definition: EGrTabula.h:24
char GetText1(unsigned short index)
Definition: EGrTabula.h:83
unsigned short GetText(unsigned short index)
Definition: EGrTabula.h:53
void SetText1(unsigned short index, char vData)
Definition: EGrTabula.h:128
char GetCas()
Definition: EGrTabula.h:73
char GetTabula()
Definition: EGrTabula.h:43
void SetPocetRiadkov(char vData)
Definition: EGrTabula.h:93
void SetText(unsigned short index, unsigned short vData)
Definition: EGrTabula.h:98
EGrTabule(EGrRootTabula *root, EGrRootTabula *owner)
Definition: EGrTabula.cpp:29
void SetRezim(char vData)
Definition: EGrTabula.h:113
char GetText2(unsigned short index)
Definition: EGrTabula.h:63
virtual ~EGrTabula()
Definition: EGrTabula.cpp:16
EGrTabule * GetOwner()
Definition: EGrTabula.h:133
Class ETabule : Lin. zoznam tabul.
Definition: EGrTabula.h:151
void SetRezerva(char vData)
Definition: EGrTabula.h:123
char GetRezerva()
Definition: EGrTabula.h:78
EGrTabula * Add(char tabula, char pocetRiadkov, unsigned short *text, char *zobrazenie, char *text2, char rezim, char cas, char rezerva, char *text1)
Definition: EGrTabula.cpp:47
EGrTabula(EGrRootTabula *root, EGrTabule *owner)
Definition: EGrTabula.cpp:9
void SetTabula(char vData)
Definition: EGrTabula.h:88
char GetZobrazenie(unsigned short index)
Definition: EGrTabula.h:58
Class ERootTabula : Korenovy objekt tabul vsetkych moznych druhov
Definition: EGrRootTabula.h:39
char GetPocetRiadkov()
Definition: EGrTabula.h:48
void SetCas(char vData)
Definition: EGrTabula.h:118
char GetRezim()
Definition: EGrTabula.h:68
virtual long ReadData(FILE *file)
Definition: EGrTabula.cpp:80