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

Public Member Functions | |
| BxArrayVariable () | |
| BxArrayVariable (int dim) | |
| BxArrayVariable (const BxArrayVariable ©) | |
| virtual void | setBinaryFilePtr (BxBinaryFile *fp) |
| virtual bool | toStream (FILE *) |
| virtual bool | toStreamBinary (FILE *) |
| void | setSizeObject (BxDataObject *sizeObj) |
| virtual BxDataObject * | get (int index) |
| virtual BxDataObject * | getNext () |
<arrayVariable>
<sizeRef><integer-32/></sizeRef>
<dim>
<dim indexTo="5"/>
</dim>
</arrayVariable>
|
|
Default constructor. Constructs an empty instance of the class BxArrayVariable. The default values for all inherited attributes are assigned by the default base class constructor BxArray(). The attributes local to this derived class are assigned default values as follows:
sizeObject_ = NULL;
bSizeObjectRead = false;
|
|
|
Construct a variable-length array having a specified number of dimensions. The dims_ attribute is created to store the specified number of dimensions, but the dimension descriptions stored in this attribute are set to NULL. The other attribute values are assigned default values as defined by the default constructor for this class BxArrayVariable().
|
|
|
Construct a variable-length array having attribute values identical to a specified instance of BxArrayVariable.
Attributes of the new array instance are initialized by copying attribute values from the specified input array. Uninitialized attribute values in the input array result in NULL valued attributes in the new array instance. If the attributes of the input array have been initialized, then the array structure of the new instance will be the same as the array structure of the input instance.
|
|
|
Get a copy of a single data element from a variable-length array.
The data element to be retrieved from the variable-length array is identified by a single index value into the array. If the variable length array consists of multiple dimensions, then the caller is responsible for multiplying the dimension extents times the respective index values for the desired data element. The index value must be specified as a zero-based offset into the variable-length array.
Reimplemented from BxArray. |
|
|
Get the next (available) single data element from a variable-length array.
Successive calls to this method result in a sequential retrieval of array data element values. This method remembers the position of the next value to be retrieved. For each method call, a single data element value is retrieved and returned based on the order in which the element values are stored within the array. The dimensionality of the array is ignored.
Reimplemented from BxArray. |
|
|
Overriden method to set the binary file pointer to a specified file position. This method also sets the file pointer for locating the variable size information that must be included at the beginning of the binary file. Once the value specifying the variable length of the slowest-moving array dimension has been read from the file, the file pointer for locating that information will continue to be updated (erroneously). The updated file pointer will not be used once the value specifying the length of the variable array dimension has been read from the file.
Reimplemented from BxDataObject. |
|
|
Set or reset the size of the variable-length dimension of an array.
The size of the variable-length dimension of an array is encapsulated in an instance of class BxDataObject. If the size of the variable-length dimension of this array has been set previously, then the old size object is released, and the new size object is referenced by this variable-length array.
|
|
|
Write the implicit and complete XML (DataBinX) representation for a variable-length array to a file.
The BinX XML schema for this array is combined with the array data element values to create a DataBinX file.
<arrayVariable varName="x" typeName="x">
<sizeRef><byte-8>2</byte-8></sizeRef>
<dim name="d2" index="1">
<dim name="d1" index="1">
<short-16>11</short-16>
</dim>
<dim name="d1" index="2">
<short-16>12</short-16>
</dim>
<dim name="d1" index="3">
<short-16>13</short-16>
</dim>
<dim name="d1" index="4">
<short-16>14</short-16>
</dim>
</dim>
<dim name="d2" index="2">
<dim name="d1" index="1">
<short-16>21</short-16>
</dim>
<dim name="d1" index="2">
<short-16>22</short-16>
</dim>
<dim name="d1" index="3">
<short-16>23</short-16>
</dim>
<dim name="d1" index="4">
<short-16>24</short-16>
</dim>
</dim>
</arrayVariable>
Reimplemented from BxArray. |
|
|
Write all of the data element values of a variable-length array to a binary file.
The size of the variable-length dimension of the array is the first value written to the output file. Data element values from the variable-length array are written after the size value.
Reimplemented from BxArray. |
1.3.3