|
Jpp
|
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 |
| Check is file is open. More... | |
| virtual void | open (const char *file_name) |
| Open file. More... | |
| virtual void | close () |
| Close file. More... | |
| void | open (const char *name, int open_mode=std::ios::in) |
| gzstreambuf * | rdbuf () |
| virtual bool | setObject (T &object) |
| Set object. More... | |
| virtual bool | hasNext () |
| Check availability of next element. More... | |
| virtual const pointer_type & | next () |
| 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... | |
Private Attributes | |
| pointer_type | ps |
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 |
Default constructor.
Definition at line 37 of file JGZFileReader.hh.
|
inline |
|
inlinevirtual |
Check is file is open.
Implements JLANG::JAccessible.
Definition at line 60 of file JGZFileReader.hh.
|
inlinevirtual |
Open file.
| file_name | file name |
Implements JLANG::JAccessible.
Definition at line 71 of file JGZFileReader.hh.
|
inlinevirtual |
|
inlineinherited |
Definition at line 208 of file gzstream.h.
|
inlineinherited |
Definition at line 193 of file gzstream.h.
|
inlinevirtualinherited |
Set object.
| object | reference to object to be set |
Implements JLANG::JAbstractObjectIterator< T >.
Definition at line 45 of file JStreamObjectIterator.hh.
|
inlinevirtualinherited |
Check availability of next element.
Implements JLANG::JObjectIterator< T >.
Definition at line 56 of file JAbstractObjectIterator.hh.
|
inlinevirtualinherited |
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< const T >, JLANG::JAbstractObjectReader< JTail_t >, JLANG::JAbstractObjectReader< JHead_t >, JLANG::JAbstractObjectReader< KM3NETDAQ::JDAQEvent >, JLANG::JAbstractObjectReader< JDAQSummaryslice >, and JLANG::JAbstractObjectReader< JTypeList< JDAQEvent, JTypelist_t > >.
Definition at line 88 of file JObjectIterator.hh.
|
inlinestaticinherited |
|
inlinestaticinherited |
|
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.
|
privateinherited |
Definition at line 84 of file JAbstractObjectIterator.hh.
|
staticprotectedinherited |
1.8.16