Assimp  v3.1.1 (June 2014)
OpenDDLExport Class Reference

This class represents the OpenDDLExporter. More...

Public Member Functions

bool exportContext (Context *ctx, const std::string &filename)
 Export the data of a parser context. More...
 
bool handleNode (DDLNode *node)
 Handles a node export. More...
 
 OpenDDLExport (IOStreamBase *stream=ddl_nullptr)
 The class constructor. More...
 
bool writeToStream (const std::string &statement)
 Writes the statement to the stream. More...
 
 ~OpenDDLExport ()
 The class destructor. More...
 

Protected Member Functions

bool writeNode (DDLNode *node, std::string &statement)
 
bool writeNodeHeader (DDLNode *node, std::string &statement)
 
bool writeProperties (DDLNode *node, std::string &statement)
 
bool writeValue (Value *val, std::string &statement)
 
bool writeValueArray (DataArrayList *al, std::string &statement)
 
bool writeValueType (Value::ValueType type, size_t numItems, std::string &statement)
 

Detailed Description

This class represents the OpenDDLExporter.

Constructor & Destructor Documentation

◆ OpenDDLExport()

OpenDDLExport::OpenDDLExport ( IOStreamBase stream = ddl_nullptr)

The class constructor.

◆ ~OpenDDLExport()

OpenDDLExport::~OpenDDLExport ( )

The class destructor.

Member Function Documentation

◆ exportContext()

bool OpenDDLExport::exportContext ( Context ctx,
const std::string &  filename 
)

Export the data of a parser context.

Parameters
ctx[in] Pointer to the context.
filename[in] The filename for the export.
Returns
True in case of success, false in case of an error.

◆ handleNode()

bool OpenDDLExport::handleNode ( DDLNode node)

Handles a node export.

Parameters
node[in] The node to handle with.
Returns
True in case of success, false in case of an error.

◆ writeNode()

bool OpenDDLExport::writeNode ( DDLNode node,
std::string &  statement 
)
protected

◆ writeNodeHeader()

bool OpenDDLExport::writeNodeHeader ( DDLNode node,
std::string &  statement 
)
protected

◆ writeProperties()

bool OpenDDLExport::writeProperties ( DDLNode node,
std::string &  statement 
)
protected

◆ writeToStream()

bool OpenDDLExport::writeToStream ( const std::string &  statement)

Writes the statement to the stream.

Parameters
statement[in] The content to write.
Returns
True in case of success, false in case of an error.

◆ writeValue()

bool OpenDDLExport::writeValue ( Value val,
std::string &  statement 
)
protected

◆ writeValueArray()

bool OpenDDLExport::writeValueArray ( DataArrayList al,
std::string &  statement 
)
protected

◆ writeValueType()

bool OpenDDLExport::writeValueType ( Value::ValueType  type,
size_t  numItems,
std::string &  statement 
)
protected

The documentation for this class was generated from the following files: