DataIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ELinkaCol.h
Go to the documentation of this file.
1 #if !defined _ELINKA_COL_H_
2 #define _ELINKA_COL_H_
3 
4 #include "dataio/DataIODefines.h"
5 #include "core/common/Head.h"
6 #include "dataio/datainput/ColReader.h"
7 
8 #include <map>
9 #include <string>
10 
11 namespace EM
12 {
13  namespace Strojcek
14  {
15  namespace VstupneUdaje
16  {
17  namespace CestovnePoriadky
18  {
19  class ELinka;
20 
21  class DATAIO_API ELinkaCol : public EHead, public EColReader
22  {
23  public:
24  ELinkaCol();
25  virtual ~ELinkaCol();
26 
27  virtual long GetSize();
28  virtual long FillRecord( const char *pomPole, long minimum );
29 
30  void SetDirection( unsigned short direction );
31  unsigned short GetDirection();
32 
33  void AddLine( ELinka *line );
34  ELinka *GetLineByLineNumber( long lineNumber );
35  ELinka *GetLineByLineNumberText( std::string lineNumberText );
36  std::map<long, ELinka *> const *GetSortedLineCollection() const;
37 
38  long Read();
39 
40  protected:
41  virtual long ReadData( FILE *file );
42 
43  private:
44  class DataClass;
45  DataClass *d;
46  };
47  }
48  }
49  }
50 }
51 
52 #endif
Class ECol : Objekt je predok pre vsetky nasledujuce kolekcie
Definition: ColReader.h:15
#define DATAIO_API
Definition: DataIODefines.h:10