class Geo::IffTextWriter
Presents an interface compatible with IffWriter, writes a text version of the binary IFF.
Construct with the result of StreamRecorder to verify that the text matches the binary exactly.
Functions
Name | Description |
---|---|
BeginChunk(u32) | Matches IffWriter::EndChunk. |
BeginFile(u32, u32) | Matches IffWriter::BeginFile. |
EndChunk() | Matches IffWriter::EndChunk. |
EndFile() | Matches IffWriter::EndFile. |
Fail() | For compatibility with IffWriter. |
IffTextWriter(IGeoStream &, GeoArray< Impl::TypeBlock >) | Constructor. |
IsOk() | For compatibility with IGeoStream. |
IsWriterOk() | For compatibility with IffWriter. |
Write(const GeoProperty< T, name, isFlaky > &) | Write a property. |
Write(const GeoProperty< T, name, isFlaky >, const GeoProperty< T, name, isFlaky >) | Write a property range: e.g. Write(property, property + count) |
WriteProperty(const char *, const T &) | Write a property with a name. |
Friends
Name | Description |
---|---|
friend void WriteArray(IffTextWriter &writer, const GeoProperty< T, name, isFlaky > &p) | Write a property that can be converted to GeoArray. |
friend void WriteArray(IffTextWriter &writer, const GeoProperty< T, name, isFlaky > &p, Geo::u32 sections) | Write a property that can be converted to GeoArray, with a sections argument. |
friend void WriteArray(IffTextWriter &writer, const GeoProperty< T, name, isFlaky > &p, WriteElement writeElement) | Write a property that can be converted to GeoArray, with a per-element write function. |
friend bool WriteDataBlock(const Geo::GeoProperty< T, name, isFlaky > &data, IffTextWriter &writer) | Write a data block property. |
friend void WriteMap(IffTextWriter &writer, const GeoProperty< T, name, isFlaky > &p) | Write a property that can be converted to GeoMap. |
friend void WriteObject(Geo::IffTextWriter &writer, ArrayRange< T > range) | WriteObject overload for ArrayRange. |
friend void WriteProperty(IffTextWriter &writer, const char *name, const T &value, bool isFlaky=false) | Write a property with a name (friend) |
friend void WriteRange(IffTextWriter &writer, const GeoProperty< T, name, isFlaky > first, const GeoProperty< T, name, isFlaky > last) | Write a property range: e.g. WriteArray(writer, property, property + count) |
void Geo::IffTextWriter::BeginChunk
public: void BeginChunk
(
u32 type
)
Matches IffWriter::EndChunk.
void Geo::IffTextWriter::BeginFile
public: void BeginFile
(
u32 fileType,
u32 fileVersion
)
Matches IffWriter::BeginFile.
void Geo::IffTextWriter::EndChunk
public: void EndChunk()
Matches IffWriter::EndChunk.
void Geo::IffTextWriter::EndFile
public: void EndFile()
Matches IffWriter::EndFile.
void Geo::IffTextWriter::Fail
public: void Fail()
For compatibility with IffWriter.
Geo::IffTextWriter::IffTextWriter
public: IffTextWriter
(
IGeoStream & stream,
GeoArray< Impl::TypeBlock > typeBlocks
)
Constructor.
bool Geo::IffTextWriter::IsOk
public: bool IsOk() const
For compatibility with IGeoStream.
bool Geo::IffTextWriter::IsWriterOk
public: bool IsWriterOk() const
For compatibility with IffWriter.
void Geo::IffTextWriter::Write
public: void Write
(
const GeoProperty< T, name, isFlaky > & p
)
Write a property.
void Geo::IffTextWriter::Write
public: void Write
(
const GeoProperty< T, name, isFlaky > first,
const GeoProperty< T, name, isFlaky > last
)
Write a property range: e.g. Write(property, property + count)
void Geo::IffTextWriter::WriteProperty
public: void WriteProperty
(
const char * name,
const T & value
)
Write a property with a name.