Jpp  master_rocky-37-gf0c5bc59d
the software that should make you happy
JASCIIFileReader.hh
Go to the documentation of this file.
1 #ifndef __JLANG__JASCIIFILEREADER__
2 #define __JLANG__JASCIIFILEREADER__
3 
4 #include <istream>
5 
8 
9 
10 /**
11  * \author mdejong
12  */
13 
14 namespace JLANG {}
15 namespace JPP { using namespace JLANG; }
16 
17 namespace JLANG {
18 
19 
20  /**
21  * Object reading from ASCII file.
22  *
23  * This class implements the JAccessibleObjectIterator interface.
24  */
25  template<class T>
28  public JStreamObjectIterator <T>,
30  {
31  public:
32  /**
33  * Default constructor.
34  */
37  JStreamObjectIterator<T>(static_cast<std::istream&>(*this))
38  {}
39 
40 
41  /**
42  * Constructor.
43  *
44  * \param file_name file name
45  */
46  JASCIIFileReader(const char* file_name) :
47  JAccessibleInputStream(file_name),
48  JStreamObjectIterator<T>(static_cast<std::istream&>(*this))
49  {}
50  };
51 }
52 
53 #endif
Object reading from ASCII file.
JASCIIFileReader()
Default constructor.
JASCIIFileReader(const char *file_name)
Constructor.
Accessible input stream.
Interface for object iteration with named access.
Auxiliary classes and methods for language specific functionality.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Definition: JSTDTypes.hh:14