#include "../Include/Globals.h"
#include "../Include/FlyLegacy.h"
#include "../Include/Utility.h"
Go to the source code of this file.
Functions | |
| static char * | sgets (char *s, int maxLength, SStream *stream) |
| static Tag | snexttag (char *s, int maxLength, SStream *stream) |
| int | OpenStream (SStream *stream) |
| int | OpenStream (PFS *pfs, SStream *stream) |
| void | CloseStream (SStream *stream) |
| void | ReadFrom (CStreamObject *object, SStream *stream) |
| void | SkipObject (SStream *stream) |
| void | AdvanceToTag (unsigned int tag, SStream *stream) |
| void | ReadInt (int *value, SStream *stream) |
| void | ReadUInt (unsigned int *value, SStream *stream) |
| void | ReadFloat (float *value, SStream *stream) |
| void | ReadDouble (double *value, SStream *stream) |
| void | ReadString (char *value, int maxLength, SStream *stream) |
| void | ReadVector (SVector *value, SStream *stream) |
| void | ReadLatLon (SPosition *value, SStream *stream) |
| void | ReadPosition (SPosition *value, SStream *stream) |
| void | ReadTime (SDateTime *value, SStream *stream) |
| void | ReadTimeDelta (SDateTimeDelta *value, SStream *stream) |
| void | ReadMessage (SMessage *msg, SStream *stream) |
| void | ReadTag (Tag *tag, SStream *stream) |
Each line consists of leading whitespace (which is ignored) followed by either a data tag (<xxxx>), data value or comment (preceded by //) Comments can also follow data tags (but not data values)
// This comment is OK <dtag> // This comment is OK 123.45 // Invalid, comments cannot follow data values
Nested sub-objects use the special tags <bgno> and <endo> as delimiters. It is up to the application to know how to interpret the various data tags values and sub-objects in the stream that it is reading.
Definition in file Stream.cpp.
|
||||||||||||
|
Definition at line 254 of file Stream.cpp. |
|
|
||||||||||||
|
Definition at line 120 of file Stream.cpp. References SStream::filename, SStream::mode, popen(), and SStream::stream. |
|
|
Definition at line 106 of file Stream.cpp. References globals, OpenStream(), and SGlobals::pfs. |
|
||||||||||||
|
Definition at line 304 of file Stream.cpp. References ReadString(). |
|
||||||||||||
|
Definition at line 292 of file Stream.cpp. References ReadString(). |
|
||||||||||||
|
||||||||||||
|
||||||||||||
|
Definition at line 364 of file Stream.cpp. References SPosition::alt, gtfo, SPosition::lat, SPosition::lon, and ReadString(). Referenced by CScenerySet::Read(). |
|
||||||||||||
|
||||||||||||
|
Definition at line 431 of file Stream.cpp. References SPosition::alt, gtfo, SPosition::lat, SPosition::lon, ReadDouble(), and ReadString(). Referenced by CWorldObject::Read(). |
|
||||||||||||||||
|
||||||||||||
|
||||||||||||
|
Definition at line 493 of file Stream.cpp. |
|
||||||||||||
|
Definition at line 502 of file Stream.cpp. |
|
||||||||||||
|
Definition at line 278 of file Stream.cpp. References sgets(). Referenced by CGauge::Read(), CSubsystem::Read(), CEngineSubsystem::Read(), CFuelTap::Read(), CSimulatedVehicle::Read(), CLevelOfDetail::Read(), CRadioManager::Read(), and CModelObject::Read(). |
|
||||||||||||
|
Definition at line 343 of file Stream.cpp. References sgets(), SVector::x, SVector::y, and SVector::z. Referenced by CFuelCell::Read(), CPitotStaticPort::Read(), CSimulatedVehicle::Read(), CAerodynamicModel::Read(), CLoadoutUnit::Read(), and CWorldObject::Read(). |
|
||||||||||||||||
|
Definition at line 58 of file Stream.cpp. References pgets(), and SStream::stream. Referenced by ReadInt(), ReadString(), ReadUInt(), ReadVector(), and snexttag(). |
|
|
Definition at line 218 of file Stream.cpp. References snexttag(). Referenced by CTachometerGauge::Read(), CNavajoRadarAltimeterGauge::Read(), CPanel::Read(), CBKKAP140Panel::Read(), CSimulatedVehicle::Read(), CAerodynamicModel::Read(), CElectricalSystem::Read(), CSceneryModels::Read(), CFuiWindow::Read(), and CFuiGroupBox::Read(). |
|
||||||||||||||||
|
Definition at line 78 of file Stream.cpp. References sgets(), and StringToTag(). Referenced by ReadFrom(), ReadMessage(), and SkipObject(). |
|
|
Documentation generated by
|