Free Electron
Reader.h
Go to the documentation of this file.
1 /* Copyright (C) 2003-2021 Free Electron Organization
2  Any use of this software requires a license. If a valid license
3  was not distributed with this file, visit freeelectron.org. */
4 
5 /** @file */
6 
7 #ifndef __data_Reader_h__
8 #define __data_Reader_h__
9 namespace fe
10 {
11 namespace data
12 {
13 
14 typedef Array<Record> t_r;
15 typedef std::map<int, sp<RecordGroup> > t_id_rg;
16 typedef std::map<int, sp<RecordArray> > t_id_ra;
17 
18 class FE_DL_EXPORT Reader : public Counted
19 {
20  public:
21  Reader(void): m_name("Reader") {}
22 
23 virtual sp<RecordGroup> input(std::istream &istrm) = 0;
24 const String& name(void) const { return m_name; }
25 
26  private:
27  String m_name;
28 };
29 
30 
31 } /* namespace */
32 } /* namespace */
33 
34 #endif /* __data_Reader_h__ */
kernel
Definition: namespace.dox:3