Jpp
master_rocky
the software that should make you happy
software
JLang
JASCIIFileReader.hh
Go to the documentation of this file.
1
#ifndef __JLANG__JASCIIFILEREADER__
2
#define __JLANG__JASCIIFILEREADER__
3
4
#include <istream>
5
6
#include "
JLang/JAccessibleStream.hh
"
7
#include "
JLang/JStreamObjectIterator.hh
"
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>
26
class
JASCIIFileReader
:
27
public
JAccessibleInputStream
,
28
public
JStreamObjectIterator
<T>,
29
public
JAccessibleObjectIterator
<T>
30
{
31
public
:
32
/**
33
* Default constructor.
34
*/
35
JASCIIFileReader
() :
36
JAccessibleInputStream
(),
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
JAccessibleStream.hh
JStreamObjectIterator.hh
JLANG::JASCIIFileReader
Object reading from ASCII file.
Definition:
JASCIIFileReader.hh:30
JLANG::JASCIIFileReader::JASCIIFileReader
JASCIIFileReader()
Default constructor.
Definition:
JASCIIFileReader.hh:35
JLANG::JASCIIFileReader::JASCIIFileReader
JASCIIFileReader(const char *file_name)
Constructor.
Definition:
JASCIIFileReader.hh:46
JLANG::JAccessibleInputStream
Accessible input stream.
Definition:
JAccessibleStream.hh:28
JLANG::JAccessibleObjectIterator
Interface for object iteration with named access.
Definition:
JObjectIterator.hh:377
JLANG::JStreamObjectIterator
Stream object iterator.
Definition:
JStreamObjectIterator.hh:27
JLANG
Auxiliary classes and methods for language specific functionality.
Definition:
JAbstractClass.hh:11
JPP
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Definition:
JAAnetToolkit.hh:43
std
Definition:
JSTDTypes.hh:14
Generated by
1.9.1