Jpp
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
JLANG::JASCIIFileReader::JASCIIFileReader
JASCIIFileReader()
Default constructor.
Definition: JASCIIFileReader.hh:35
JAccessibleStream.hh
JPP
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Definition: JAAnetToolkit.hh:37
JLANG::JAccessibleObjectIterator
Interface for object iteration with named access.
Definition: JObjectIterator.hh:372
JLANG::JAccessibleInputStream
Accessible input stream.
Definition: JAccessibleStream.hh:25
JLANG::JStreamObjectIterator
Stream object iterator.
Definition: JStreamObjectIterator.hh:25
std
Definition: jaanetDictionary.h:36
JLANG::JASCIIFileReader::JASCIIFileReader
JASCIIFileReader(const char *file_name)
Constructor.
Definition: JASCIIFileReader.hh:46
JLANG
Auxiliary classes and methods for language specific functionality.
Definition: JAbstractClass.hh:10
JLANG::JASCIIFileReader
Object reading from ASCII file.
Definition: JASCIIFileReader.hh:26
JStreamObjectIterator.hh