Dali 3D User Interface Engine
List of all members | Public Member Functions
Dali::Internal::OutputArchive Class Reference

Archive specialization. More...

#include <archive.h>

Inheritance diagram for Dali::Internal::OutputArchive:
Inheritance graph
[legend]
Collaboration diagram for Dali::Internal::OutputArchive:
Collaboration graph
[legend]

Public Member Functions

 OutputArchive (std::streambuf &buf, const unsigned int version)
 
virtual ~OutputArchive ()
 
virtual bool Write (const char *data, const unsigned int length)
 Write a bytestream to the archive. More...
 
virtual bool OpenChunk (const unsigned int tag)
 Open a new chunk. More...
 
virtual void CloseChunk ()
 Close the current chunk The chunk length is written to the archive. More...
 
- Public Member Functions inherited from Dali::Internal::Archive
 Archive (std::streambuf &buf)
 Constructor. More...
 
virtual ~Archive ()
 Destructor. More...
 
unsigned int GetVersion () const
 Get archive version. More...
 
void SetVersion (const unsigned int version)
 Set archive version. More...
 
bool GetResult () const
 Returns the result of the archiving operation The result status is initialised to true on construction Any failure will set it to false. More...
 
void SetResultFailed ()
 Set the archive status to failed. More...
 
virtual bool Read (char *data, const unsigned int length)
 Read a bytestream from the archive. More...
 
virtual void SkipChunk (const unsigned int tag)
 Skip an entire chunk. More...
 
virtual unsigned int PeekChunk ()
 Peek at the tag of the next chunk. More...
 

Additional Inherited Members

- Public Types inherited from Dali::Internal::Archive
typedef std::pair< unsigned
int, std::streampos > 
ChunkHeader
 
- Protected Attributes inherited from Dali::Internal::Archive
unsigned int mVersion
 
std::iostream mStream
 
std::stack< ChunkHeadermChunkStack
 
bool mResult
 

Detailed Description

Archive specialization.

Performs serialization to an Archive

Definition at line 157 of file archive.h.

Constructor & Destructor Documentation

Dali::Internal::OutputArchive::OutputArchive ( std::streambuf &  buf,
const unsigned int  version 
)

Definition at line 60 of file archive.cpp.

References Dali::Internal::Archive::SetVersion().

Here is the call graph for this function:

Dali::Internal::OutputArchive::~OutputArchive ( )
virtual

Definition at line 66 of file archive.cpp.

Member Function Documentation

void Dali::Internal::OutputArchive::CloseChunk ( )
virtual

Close the current chunk The chunk length is written to the archive.

Implements Dali::Internal::Archive.

Definition at line 110 of file archive.cpp.

References Dali::Internal::Archive::mChunkStack, Dali::Internal::Archive::mStream, and Write().

Here is the call graph for this function:

bool Dali::Internal::OutputArchive::OpenChunk ( const unsigned int  tag)
virtual

Open a new chunk.

Parameters
[in]tagThe FourCC tag for the chunk
Returns
true if success.

Implements Dali::Internal::Archive.

Definition at line 83 of file archive.cpp.

References Dali::Internal::Archive::mChunkStack, Dali::Internal::Archive::mResult, Dali::Internal::Archive::mStream, and Write().

Here is the call graph for this function:

bool Dali::Internal::OutputArchive::Write ( const char *  data,
const unsigned int  length 
)
virtual

Write a bytestream to the archive.

Parameters
[in]dataA pointer to the data
[in]lengthThe length of the data in bytes
Returns
true if the data was successfully written

Reimplemented from Dali::Internal::Archive.

Definition at line 70 of file archive.cpp.

References Dali::Internal::Archive::mResult, and Dali::Internal::Archive::mStream.

Referenced by CloseChunk(), and OpenChunk().

Here is the caller graph for this function:


The documentation for this class was generated from the following files:
Dali Docs Home
Read more about Dali