Jpp
16.0.0-rc.1
the software that should make you happy
|
Object reading from gzipped file. More...
#include <JGZFileReader.hh>
Public Types | |
typedef JObjectIterator< T > ::pointer_type | pointer_type |
Public Member Functions | |
JGZFileReader () | |
Default constructor. More... | |
JGZFileReader (const char *file_name) | |
Constructor. More... | |
virtual bool | is_open () const override |
Check is file is open. More... | |
virtual void | open (const char *file_name) override |
Open file. More... | |
virtual void | close () override |
Close file. More... | |
void | open (const char *name, int open_mode=std::ios::in) |
gzstreambuf * | rdbuf () |
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 | |
gzstreambuf | buf |
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 gzipped file.
This class implements the JAccessibleObjectIterator interface.
Definition at line 28 of file JGZFileReader.hh.
|
inherited |
Definition at line 39 of file JAbstractObjectIterator.hh.
|
inline |
|
inline |
|
inlineoverridevirtual |
Check is file is open.
Implements JLANG::JAccessible.
Definition at line 60 of file JGZFileReader.hh.
|
inlineoverridevirtual |
Open file.
file_name | file name |
Implements JLANG::JAccessible.
Definition at line 71 of file JGZFileReader.hh.
|
inlineoverridevirtual |
|
inlineinherited |
Definition at line 208 of file gzstream.h.
|
inlineinherited |
Definition at line 193 of file gzstream.h.
|
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.
|
inlinestaticinherited |
|
inlinestaticinherited |
Throw exception or return error.
error | exception |
value | return code |
Definition at line 50 of file JThrow.hh.
|
protectedinherited |
Definition at line 169 of file gzstream.h.
|
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.
|
staticprotectedinherited |