Jpp
software
JIO
JBinaryFileReader.hh
Go to the documentation of this file.
1
#ifndef __JIO__JBINARYFILEREADER__
2
#define __JIO__JBINARYFILEREADER__
3
4
#include <istream>
5
6
#include "
JLang/JAccessibleBinaryStream.hh
"
7
#include "
JLang/JObjectIterator.hh
"
8
9
#include "
JIO/JStreamIO.hh
"
10
#include "
JIO/JReaderObjectIterator.hh
"
11
12
13
/**
14
* \author mdejong
15
*/
16
17
namespace
JIO
{}
18
namespace
JPP
{
using namespace
JIO
; }
19
20
namespace
JIO
{
21
22
using
JLANG::JAccessibleBinaryInputStream
;
23
using
JLANG::JAccessibleObjectIterator
;
24
25
26
/**
27
* Object reading from binary file.
28
*
29
* This class implements the JLANG::JAccessibleObjectIterator interface.
30
*/
31
template
<
class
T>
32
class
JBinaryFileReader
:
33
public
JAccessibleBinaryInputStream
,
34
protected
JStreamReader
,
35
public
JReaderObjectIterator
<T>,
36
public
JAccessibleObjectIterator
<T>
37
{
38
public
:
39
/**
40
* Default constructor.
41
*/
42
JBinaryFileReader
() :
43
JAccessibleBinaryInputStream
(),
44
JStreamReader
(static_cast<
std
::istream&> (*this)),
45
JReaderObjectIterator
<T>(static_cast<
JStreamReader
&>(*this))
46
{}
47
};
48
}
49
50
#endif
JStreamIO.hh
JAccessibleBinaryStream.hh
JObjectIterator.hh
JIO::JBinaryFileReader
Object reading from binary file.
Definition:
JBinaryFileReader.hh:32
JPP
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Definition:
JAAnetToolkit.hh:37
JIO::JBinaryFileReader::JBinaryFileReader
JBinaryFileReader()
Default constructor.
Definition:
JBinaryFileReader.hh:42
JLANG::JAccessibleObjectIterator
Interface for object iteration with named access.
Definition:
JObjectIterator.hh:372
JIO::JStreamReader
Binary input based on std::istream.
Definition:
JStreamIO.hh:24
std
Definition:
jaanetDictionary.h:36
JIO
Auxiliary classes and methods for binary I/O.
Definition:
JBinaryFileReader.hh:17
JIO::JReaderObjectIterator
JReader object iterator.
Definition:
JReaderObjectIterator.hh:26
JReaderObjectIterator.hh
JLANG::JAccessibleBinaryInputStream
Accessible binary input stream.
Definition:
JAccessibleBinaryStream.hh:25
Generated by
1.8.16