A class representing a a structured file that is portable accross CPU architectures (as in the XDR protocol).
![]() | Construction |
![]() | Structured I/O functions |
![]() | Structure definition functions |
![]() | structureSize Number of bytes in structure. |
![]() | structure Array of elements in the structure. |
![]() | numElements Number of elements in the array. |
Overrides from class PObject
Overrides from class PChannel
File manipulation functions
File channel functions
Information functions
Reading functions
Writing functions
Miscellaneous functions
Error functions
Run Time Type functions
Comparison functions
I/O functions
A class representing a a structured file that is portable accross CPU architectures (as in the XDR protocol).This differs from object serialisation in that the access is always to a disk file and is random access. It would primarily be used for database type applications.
The initial structure size is one byte.
The PChannel::IsOpen() function may be used after object
construction to determine if the file was successfully opened.
The PChannel::IsOpen() function may be used after object
construction to determine if the file was successfully opened.
PStructuredFile( OpenMode mode, int opts = ModeDefault )
opts - OpenOptions enum for open operation. PStructuredFile( const PFilePath & name, OpenMode mode = ReadWrite, int opts = ModeDefault )
mode - Mode in which to open the file.
opts - OpenOptions enum for open operation.
BOOL Write( const void * buffer )
enum ElementType
Character
Integer16
Integer32
Integer64
Float32
struct Element
void SetStructure( Element * structure, PINDEX numElements )
numElements - Number of structure elements in structure.
Alphabetic index HTML hierarchy of classes or Java