#include <binaryfilewriter.h>
Inheritance diagram for GVectors::BinaryWriter:

Public Member Functions | |
| BinaryWriter (std::string filename, vssize_t items) | |
| Constructor. | |
| BinaryWriter (const BinaryWriter &bw) | |
| Copy constructor. | |
| virtual | ~BinaryWriter () |
| Destructor. | |
| void | write (vslevel_t level, const vv_ref_t visualvector) |
| Write the item to disk. | |
Private Attributes | |
| GFileIO::GFile | file |
| The GFile used to write the data. | |
Refer to binaryfilereader.h for details on the format used in binary vector store files.
| BinaryWriter::BinaryWriter | ( | std::string | filename, | |
| vssize_t | items | |||
| ) |
Prepares the file for writing and opens it.
| filename | The filename of the file, where the VectorStore will be stored. | |
| items | The number of items to store. Has not practical meaning. Will be stored just for information. |
| BinaryWriter::BinaryWriter | ( | const BinaryWriter & | bw | ) |
| BinaryWriter::~BinaryWriter | ( | ) | [virtual] |
Destructor. Closes the file.
| level | The level of the item in the tree. Will be written to the file, too. | |
| visualvector | The VisualVector to store in the file. |
Implements GVectors::FileWriter.
GFileIO::GFile GVectors::BinaryWriter::file [private] |
The GFile used to write the data.
See
http://www.guengel.ch/myapps/libgfileio
for further details on GFile.
1.4.7