VR-Forces 4.0.4 Class Documentation
Public Types | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Friends

Collection of DtSchemaEntry objects Used to archive model definition schemas. More...

List of all members.

Public Types

typedef std::vector
< DtSchemaEntry
SchemaEntries

Public Member Functions

 DtSchema ()
 CTOR.
 DtSchema (const std::string &name)
 CTOR.
 DtSchema (const DtSchema &copy)
 CopyCTOR.
 ~DtSchema ()
 DTOR.
DtSchemaoperator= (const DtSchema &copy)
 Assignment Op.
const std::string & name () const
 Get the schema's name.
void setName (const std::string &n)
 Get the schema's name.
virtual void addSchemaEntry (const DtSchemaEntry &entry)
 Add a schema entry.
virtual bool removeSchemaEntry (const std::string name)
 Remove a schema entry.
const SchemaEntriesschemaEntries () const
 Get the schema entries.
void clear ()
 Clear the schema entries.
void setSchemaEntries (const SchemaEntries &e)
 Set the schema entries.
DtSchemaEntryfindSchemaEntry (const std::string name)
 a schema entry by name.
const DtSchemaEntryfindSchemaEntry (const std::string name) const
virtual void merge (const DtSchema &rhs)
 Merges contents of supplied schema into this one.
virtual bool renameSchemaEntry (const std::string &oldName, const std::string &newName)
 Renames the schema to the new name. Returns true if schema is renamed.

Protected Member Functions

template<typename Archive >
void serialize (Archive &ar, unsigned int version)
 When the class Archive corresponds to an output archive, the & operator is defined similar to <<.

Static Protected Member Functions

static bool findSchemaEntryFunction (const DtSchemaEntry &parameter, const std::string &name)
 Predicate for finding a schema entry in a collection.

Protected Attributes

std::string myName
SchemaEntries mySchemaEntries

Friends

class boost::serialization::access

Detailed Description

Collection of DtSchemaEntry objects Used to archive model definition schemas.


Member Typedef Documentation


Constructor & Destructor Documentation

CTOR.

makArchives::DtSchema::DtSchema ( const std::string &  name)

CTOR.

CopyCTOR.

DTOR.


Member Function Documentation

DtSchema& makArchives::DtSchema::operator= ( const DtSchema copy)

Assignment Op.

const std::string& makArchives::DtSchema::name ( void  ) const [inline]

Get the schema's name.

void makArchives::DtSchema::setName ( const std::string &  n) [inline]

Get the schema's name.

virtual void makArchives::DtSchema::addSchemaEntry ( const DtSchemaEntry entry) [virtual]

Add a schema entry.

virtual bool makArchives::DtSchema::removeSchemaEntry ( const std::string  name) [virtual]

Remove a schema entry.

Returns whether the entry was removed successfully.

Get the schema entries.

void makArchives::DtSchema::clear ( ) [inline]

Clear the schema entries.

Set the schema entries.

a schema entry by name.

Warning\ the pointer will be invalid if you perform any Additions or Removals.

const DtSchemaEntry* makArchives::DtSchema::findSchemaEntry ( const std::string  name) const
virtual void makArchives::DtSchema::merge ( const DtSchema rhs) [virtual]

Merges contents of supplied schema into this one.

Merge will replace existing schemas with schemas of like names or add new schemas that do not exist. Will not delete schemas that do not exist in supplied schema

virtual bool makArchives::DtSchema::renameSchemaEntry ( const std::string &  oldName,
const std::string &  newName 
) [virtual]

Renames the schema to the new name. Returns true if schema is renamed.

template<typename Archive >
void makArchives::DtSchema::serialize ( Archive &  ar,
unsigned int  version 
) [inline, protected]

When the class Archive corresponds to an output archive, the & operator is defined similar to <<.

Likewise, when the class Archive is a type of input archive the & operator is defined similar to >>.

static bool makArchives::DtSchema::findSchemaEntryFunction ( const DtSchemaEntry parameter,
const std::string &  name 
) [static, protected]

Predicate for finding a schema entry in a collection.


Friends And Related Function Documentation

friend class boost::serialization::access [friend]

Member Data Documentation

std::string makArchives::DtSchema::myName [protected]

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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)