Jpp
|
Object(s) writing to ASCII file. More...
#include <JASCIIFileWriter.hh>
Public Member Functions | |
JASCIIFileWriter () | |
Default constructor. More... | |
JASCIIFileWriter (const char *file_name) | |
Constructor. More... | |
JASCIIFileWriter (const char *file_name, const std::string &sep) | |
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 | put (const T &object) |
Object output. More... | |
const std::string & | getSeparator () const |
Get token separator. More... | |
void | setSeparator (const std::string &sep) |
Set token separator. 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... | |
Static Protected Attributes | |
static bool | do_throw |
throw option More... | |
Object(s) writing to ASCII file.
This class implements the JAccessibleObjectOutput interface.
Definition at line 27 of file JASCIIFileWriter.hh.
|
inline |
Default constructor.
Definition at line 36 of file JASCIIFileWriter.hh.
|
inline |
Constructor.
file_name | file name |
Definition at line 47 of file JASCIIFileWriter.hh.
|
inline |
Constructor.
file_name | file name |
sep | token separator |
Definition at line 59 of file JASCIIFileWriter.hh.
|
inlinevirtualinherited |
Check is file is open.
Implements JLANG::JAccessible.
Definition at line 118 of file JAccessibleStream.hh.
|
inlinevirtualinherited |
Open file.
file_name | file name |
Implements JLANG::JAccessible.
Reimplemented in JLANG::JAccessibleBinaryOutputStream.
Definition at line 129 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.
|
inlinevirtualinherited |
Object output.
object | object |
Implements JLANG::JObjectOutput< T >.
Definition at line 51 of file JStreamObjectOutput.hh.
|
inlineinherited |
|
inlineinherited |
|
staticprotectedinherited |