DataIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
EDallasCol.h
Go to the documentation of this file.
1 #if !defined EDALLAS_COL_H
2 #define EDALLAS_COL_H
3 
4 #include "dataio/DataIODefines.h"
5 #include "dataio/datainput/ColReader.h"
6 #include "core/common/Head.h"
7 #include <string>
8 
9 namespace EM
10 {
11  namespace Strojcek
12  {
13  namespace VstupneUdaje
14  {
15  namespace Nastavenia
16  {
17  class ERootNastavenia;
18  class EDallas;
19 
20  class DATAIO_API EDallasCol : public EHead, public EColReader
21  {
22  public:
23  EDallasCol( ERootNastavenia *owner );
24  virtual ~EDallasCol();
25 
26  ERootNastavenia *GetOwner();
27 
28  void Add( EDallas *dallas );
29  long Write();
30  long Read();
31 
32  virtual long GetSize();
33  virtual long FillRecord( const char *pomPole, long minimum );
34  EDallas *GetFirst();
35 
36  EDallas *GetDallasByCislo( std::string dallasCislo );
37  EDallas *GetDallasByPoznamka( std::string poznamka );
38 
39  protected:
40  virtual long ReadData( FILE *file );
41 
42  private:
44  long InitFile( const char *fileName );
45 
46  ERootNastavenia *mOwner;
47  };
48  }
49  }
50  }
51 }
52 
53 #endif
Class ECol : Objekt je predok pre vsetky nasledujuce kolekcie
Definition: ColReader.h:15
#define DATAIO_API
Definition: DataIODefines.h:10