PLY reader/writer  1.2.0
 All Classes Namespaces Functions Variables Enumerations Enumerator
Public Member Functions | Public Attributes | List of all members
PLY::Storage Struct Reference

A container for all Objects. More...

#include <object.h>

Public Member Functions

 Storage ()
 Deafult constructor.
 
 Storage (const Header &header)
 Instantiated constructor. More...
 
 ~Storage ()
 Destructor.
 
void prepare (const Header &header)
 Prepare the Storage to store the Objects. More...
 
Arrayget_collection (const Header &header, const Element &elem)
 Get a collection of Objects. More...
 
bool set_collection (const Header &header, const Element &elem, Array &coll)
 Set a collection of Objects. More...
 

Public Attributes

Array ** collect
 The Object collections.
 

Detailed Description

A container for all Objects.

Constructor & Destructor Documentation

PLY::Storage::Storage ( const Header header)

Instantiated constructor.

Parameters
headerthe Header that describes the data.

Member Function Documentation

Array * PLY::Storage::get_collection ( const Header header,
const Element elem 
)

Get a collection of Objects.

Parameters
headerthe Header describing the Objects.
elemthe Element describing the Object.
Returns
the Array or NULL if the Element is not contained in this Storage.
void PLY::Storage::prepare ( const Header header)

Prepare the Storage to store the Objects.

Parameters
headerthe Header to prepare for.
bool PLY::Storage::set_collection ( const Header header,
const Element elem,
Array coll 
)

Set a collection of Objects.

Parameters
headerthe Header describing the Objects.
elemthe Element describing the Object.
collthe collection to assign.
Returns
true if the collection could be set.

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