#include <BxBinxFileWriter.h>
Inheritance diagram for BxBinxFileWriter:

Public Member Functions | |
| BxBinxFileWriter () | |
| BxBinxFileWriter (const char *filename) | |
| bool | save () |
| bool | save (const char *filename) |
| bool | saveDataBinx (FILE *) |
| bool | createBinxFile (const char *filename) |
| bool | addTypeDefinition (BxDataObject *) |
BxBinxFileWriter * pbfw = new BxBinxFileWriter("filename.xml");
|
|
Default constructor. Constructs an instance of the class BxBinxFilewriter. The newly constructed instance encapsulates the root of a BinX dataset (as an instance of the class BxDataSet) Default attribute values assigned by this class and inherited from the base class BxBinxFile are as follows:
fileptr_ = NULL;
path_ = NULL;
bfile_ = NULL;
dom_ = NULL;
|
|
|
Construct a BxBinxFileWriter object associated with a specified BinX file. The specified file name is used to create and open a local file for writing in text mode. The file name and open file pointer are maintained as attribute values of this newly constructed object. The specified file name may or may not include a file type suffix. Regardless, the resulting file name will include the suffix ".xml" indicating that the file will contain an XML document.
|
|
|
Add an instance of BxDataObject to the definitions_ attribute of this BxBinxFileWriter object.
To form a valid memory-resident representation of a BinX document tree, the input parameter should contain a well-formed representation of a type definition element in a BinX XML document. The type definition is represented by an instance of class BxDataObject or one of its derived classes, BxDataSet, BxArray, BxInteger, BxFloat.
|
|
|
Create a new BinX file having a specified file name.
Is a local file of the specified name already exists, then that file is opened for writing in text mode, the file pointer is positioned to the beginning of the file and the current file contents will be overwritten.
|
|
|
Write all sections of the BinX document to a specified BinX document file.
The sections of the BinX document are written in order to a specified BinX document file. The BinX header is written first, followed by the type definitions section, followed by the data set specification section, and the closing BinX XML tag is written last.
|
|
|
Write all sections of the BinX document to the associated BinX document file. The sections of the BinX document are written in order to the associated BinX document file. The BinX header is written first, followed by the type definitions section, followed by the data set specification section, and the closing BinX XML tag is written last.
|
|
|
Write a DataBinX file from a BinX document and a specified binary file.
This method generates and writes a BinX document with embedded data values taken from the binary data file. This file is called "DataBinX" in comparison with "SchemaBinX" which describes the data schema only leaving the data values in the separate binary file. The output file may be too large if the BinX document defines a large array. A standard BinX header is added to the output, but user-defined types are expanded, or repeated, in the data set section so that data values can be embedded.
|
1.3.3