34 #ifndef PTLIB_STRUCTUREDFILE_H
35 #define PTLIB_STRUCTUREDFILE_H
177 #include "msos/ptlib/sfile.h"
179 #include "unix/ptlib/sfile.h"
184 #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:142
This class represents a disk file.
Definition: file.h:60
Element * structure
Array of elements in the structure.
Definition: sfile.h:169
Element is a 16 bit integer.
Definition: sfile.h:134
ElementType type
Type of element in structure.
Definition: sfile.h:151
Elements in the structure definition.
Definition: sfile.h:149
Element is a 80 bit IEE floating point number.
Definition: sfile.h:144
This class describes a full description for a file on the particular platform.
Definition: filepath.h:65
File can be both read and written.
Definition: file.h:80
ElementType
All element types in a structure.
Definition: sfile.h:130
Element is a 32 bit IEE floating point number.
Definition: sfile.h:140
BOOL PBoolean
Definition: object.h:102
PINDEX structureSize
Number of bytes in structure.
Definition: sfile.h:166
PINDEX numElements
Number of elements in the array.
Definition: sfile.h:172
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:153
void SetStructure(Element *structure, PINDEX numElements)
Set the structure of each record in the file.
Element is a single character.
Definition: sfile.h:132
File options depend on the OpenMode parameter.
Definition: file.h:95
PStructuredFile()
Create a structured file object but do not open it.
Element is a 32 bit integer.
Definition: sfile.h:136
A class representing a a structured file that is portable accross CPU architectures (as in the XDR pr...
Definition: sfile.h:49
PINDEX GetStructureSize()
Get the size of each structure in the file.
Definition: sfile.h:127
Element is a 64 bit integer.
Definition: sfile.h:138
OpenMode
When a file is opened, it may restrict the access available to operations on the object instance...
Definition: file.h:77