Jpp
18.0.1-rc.2
the software that should make you happy
|
Object reading from ASCII file. More...
#include <JASCIIFileReader.hh>
Public Types | |
typedef JObjectIterator< T > ::pointer_type | pointer_type |
Public Member Functions | |
JASCIIFileReader () | |
Default constructor. More... | |
JASCIIFileReader (const char *file_name) | |
Constructor. More... | |
virtual bool | is_open () const |
Check is file is open. More... | |
virtual void | open (const char *file_name) |
Open file. More... | |
virtual void | close () |
Close file. More... | |
virtual bool | setObject (T &object) override |
Set object. More... | |
virtual bool | hasNext () override |
Check availability of next element. More... | |
virtual const pointer_type & | next () override |
Get next element. More... | |
virtual skip_type | skip (const skip_type ns) |
Skip items. More... | |
Static Public Member Functions | |
static void | Throw (const bool option) |
Enable/disable throw option. More... | |
static int | Throw (const JException &error, const int value=-1) |
Throw exception or return error. More... | |
Protected Attributes | |
std::istream & | __in |
T | object |
object More... | |
bool | has_next |
status More... | |
Static Protected Attributes | |
static bool | do_throw |
throw option More... | |
Object reading from ASCII file.
This class implements the JAccessibleObjectIterator interface.
Definition at line 26 of file JASCIIFileReader.hh.
|
inherited |
Definition at line 39 of file JAbstractObjectIterator.hh.
|
inline |
Default constructor.
Definition at line 35 of file JASCIIFileReader.hh.
|
inline |
Constructor.
file_name | file name |
Definition at line 46 of file JASCIIFileReader.hh.
|
inlinevirtualinherited |
Check is file is open.
Implements JLANG::JAccessible.
Definition at line 53 of file JAccessibleStream.hh.
|
inlinevirtualinherited |
Open file.
file_name | file name |
Implements JLANG::JAccessible.
Reimplemented in JLANG::JAccessibleBinaryInputStream.
Definition at line 64 of file JAccessibleStream.hh.
|
inlinevirtualinherited |
|
inlinestaticinherited |
|
inlinestaticinherited |
Throw exception or return error.
error | exception |
value | return code |
Definition at line 50 of file JThrow.hh.
|
inlineoverridevirtualinherited |
Set object.
object | reference to object to be set |
Implements JLANG::JAbstractObjectIterator< T >.
Definition at line 45 of file JStreamObjectIterator.hh.
|
inlineoverridevirtualinherited |
Check availability of next element.
Implements JLANG::JObjectIterator< T >.
Definition at line 56 of file JAbstractObjectIterator.hh.
|
inlineoverridevirtualinherited |
Get next element.
Implements JLANG::JObjectIterator< T >.
Definition at line 71 of file JAbstractObjectIterator.hh.
|
inlinevirtualinherited |
Skip items.
ns | number of items to skip |
Reimplemented in JLANG::JPipe< T >, JLANG::JPipe< JTail_t >, JLANG::JPipe< JHead_t >, JLANG::JSTDObjectIterator< T >, JLANG::JAbstractObjectReader< T >, JLANG::JAbstractObjectReader< JNullType >, JLANG::JAbstractObjectReader< const T >, JLANG::JAbstractObjectReader< JTail_t >, JLANG::JAbstractObjectReader< JHead_t >, JLANG::JAbstractObjectReader< KM3NETDAQ::KM3NETDAQ::JDAQEvent >, and JLANG::JAbstractObjectReader< JDAQSummaryslice >.
Definition at line 90 of file JObjectIterator.hh.
|
staticprotectedinherited |
|
protectedinherited |
Definition at line 51 of file JStreamObjectIterator.hh.
|
protectedinherited |
object
Definition at line 34 of file JAbstractObjectIterator.hh.
|
protectedinherited |
status
Definition at line 35 of file JAbstractObjectIterator.hh.