30 #ifndef PTLIB_STRUCTUREDFILE_H
31 #define PTLIB_STRUCTUREDFILE_H
75 OpenOptions opts = ModeDefault
87 OpenOptions opts = ModeDefault
173 #include "msos/ptlib/sfile.h"
175 #include "unix/ptlib/sfile.h"
180 #endif // PTLIB_STRUCTUREDFILE_H
virtual PBoolean Read(void *buf, PINDEX len)
Low level read from the file channel.
Element is a 64 bit IEE floating point number.
Definition: sfile.h:138
This class represents a disk file.
Definition: file.h:57
Element * structure
Array of elements in the structure.
Definition: sfile.h:165
Element is a 16 bit integer.
Definition: sfile.h:130
ElementType type
Type of element in structure.
Definition: sfile.h:147
Elements in the structure definition.
Definition: sfile.h:145
Element is a 80 bit IEE floating point number.
Definition: sfile.h:140
This class describes a full description for a file on the particular platform.
Definition: filepath.h:61
File can be both read and written.
Definition: file.h:77
ElementType
All element types in a structure.
Definition: sfile.h:126
Element is a 32 bit IEE floating point number.
Definition: sfile.h:136
PINDEX structureSize
Number of bytes in structure.
Definition: sfile.h:162
PINDEX numElements
Number of elements in the array.
Definition: sfile.h:168
virtual PBoolean Write(const void *buf, PINDEX len)
Low level write to the file channel.
PINDEX count
Count of elements of this type.
Definition: sfile.h:149
void SetStructure(Element *structure, PINDEX numElements)
Set the structure of each record in the file.
Element is a single character.
Definition: sfile.h:128
bool PBoolean
Definition: object.h:174
PStructuredFile()
Create a structured file object but do not open it.
Element is a 32 bit integer.
Definition: sfile.h:132
A class representing a a structured file that is portable accross CPU architectures (as in the XDR pr...
Definition: sfile.h:45
PINDEX GetStructureSize()
Get the size of each structure in the file.
Definition: sfile.h:123
Element is a 64 bit integer.
Definition: sfile.h:134
OpenMode
When a file is opened, it may restrict the access available to operations on the object instance...
Definition: file.h:74