|
Jpp 21.0.0-rc.3
the software that should make you happy
|
Object reading from file. More...
#include <JFileScanner.hh>
Public Types | |
| typedef JAccessibleObjectReader< T >::helper_type | helper_type |
| typedef JObjectIterator< T >::pointer_type | pointer_type |
Public Member Functions | |
| JFileScanner () | |
| Default constructor. | |
| JFileScanner (const char *file_name) | |
| Constructor. | |
| ~JFileScanner () | |
| Destructor. | |
| virtual void | open (const char *file_name) override |
| Open file. | |
| virtual void | close () override |
| Close device. | |
| virtual JAccessibleObjectIterator< T > * | getHelper () const override |
| Get helper. | |
| virtual bool | hasNext () override |
| Check availability of next element. | |
| virtual const pointer_type & | next () override |
| Get next element. | |
| virtual skip_type | skip (const skip_type ns) override |
| Skip items. | |
| virtual bool | is_open () const override |
| Check is device is open. | |
| bool | is_valid () const |
| Check validity of helper. | |
Static Public Member Functions | |
| static void | Throw (const bool option) |
| Enable/disable throw option. | |
| static int | Throw (const JException_t &error, const int value=-1) |
| Throw exception or return error. | |
Static Protected Attributes | |
| static bool | do_throw |
| throw option | |
Private Attributes | |
| pointer_type | ps |
Object reading from file.
This class implements the method open of the JLANG::JAccessible interface. The file format is derived from the file name extension.
Definition at line 37 of file JFileScanner.hh.
| JAccessibleObjectReader<T>::helper_type JSUPPORT::JFileScanner< T >::helper_type |
Definition at line 42 of file JFileScanner.hh.
|
inherited |
Definition at line 99 of file JObjectReader.hh.
|
inline |
|
inline |
Constructor.
| file_name | file name |
Definition at line 56 of file JFileScanner.hh.
|
inline |
Destructor.
Definition at line 65 of file JFileScanner.hh.
|
inlineoverridevirtual |
Open file.
| file_name | file name |
Implements JLANG::JAccessible.
Definition at line 78 of file JFileScanner.hh.
|
inlineoverridevirtual |
|
inlineoverridevirtualinherited |
Get helper.
Implements JLANG::JAbstractAccessibleObjectReader< T >.
Definition at line 113 of file JObjectReader.hh.
|
inlineoverridevirtualinherited |
Check availability of next element.
Implements JLANG::JObjectIterator< T >.
Definition at line 54 of file JAbstractObjectReader.hh.
|
inlineoverridevirtualinherited |
Get next element.
Implements JLANG::JObjectIterator< T >.
Definition at line 65 of file JAbstractObjectReader.hh.
|
inlineoverridevirtualinherited |
Skip items.
| ns | number of items to skip |
Reimplemented from JLANG::JObjectIterator< T >.
Definition at line 80 of file JAbstractObjectReader.hh.
|
inlineoverridevirtualinherited |
Check is device is open.
Implements JLANG::JAccessible.
Definition at line 148 of file JAbstractObjectReader.hh.
|
inlineinherited |
Check validity of helper.
Definition at line 35 of file JAbstractObjectReader.hh.
|
inlinestaticinherited |
|
inlinestaticinherited |
|
privateinherited |
Definition at line 89 of file JAbstractObjectReader.hh.
|
staticprotectedinherited |