Sparksee  6.0.2
RowWriter Class Referenceabstract

RowWriter interface. More...

Inheritance diagram for RowWriter:
Inheritance graph

Public Member Functions

virtual void Write (sparksee::gdb::StringList &row)=0 throw (sparksee::gdb::IOException, sparksee::gdb::Error)
 Writes the next row. More...
 
virtual void Close ()=0 throw (sparksee::gdb::IOException, sparksee::gdb::Error)
 Closes the writer. More...
 
virtual ~RowWriter ()
 Destructor.
 

Protected Member Functions

 RowWriter ()
 Empty constructor. More...
 

Detailed Description

RowWriter interface.

Common interface for those writers which dump the data from an string array.

It works as follows: perform as many write operations as necessary and call close once at the end. Once close is called no more write operations can be executed.

Check out the 'Data export' section in the SPARKSEE User Manual for more details on this.

Author
Sparsity Technologies http://www.sparsity-technologies.com

Constructor & Destructor Documentation

RowWriter::RowWriter ( )
inlineprotected

Empty constructor.

Protected because no one should instantiate a RowWriter. Just inherited classes can use this empty constructor.

References END_SPARKSEE_IO_NAMESPACE.

Member Function Documentation

virtual void RowWriter::Close ( )
throw (sparksee::gdb::IOException,
sparksee::gdb::Error
)
pure virtual

Closes the writer.

Exceptions
IOExceptionIf the close fails.

Implemented in CSVWriter.

virtual void RowWriter::Write ( sparksee::gdb::StringList &  row)
throw (sparksee::gdb::IOException,
sparksee::gdb::Error
)
pure virtual

Writes the next row.

Parameters
row[in] Row of data.
Exceptions
IOExceptionIf bad things happen during the write.

Implemented in CSVWriter.


The documentation for this class was generated from the following file: