VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | 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...

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

makArchives::DtSchema::DtSchema ( )

CTOR.

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

CTOR.

makArchives::DtSchema::DtSchema ( const DtSchema copy)

CopyCTOR.

makArchives::DtSchema::~DtSchema ( )

DTOR.

Member Function Documentation

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

Assignment Op.

const std::string& makArchives::DtSchema::name ( ) 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.

const SchemaEntries& makArchives::DtSchema::schemaEntries ( ) const
inline

Get the schema entries.

void makArchives::DtSchema::clear ( )
inline

Clear the schema entries.

void makArchives::DtSchema::setSchemaEntries ( const SchemaEntries e)
inline

Set the schema entries.

DtSchemaEntry* makArchives::DtSchema::findSchemaEntry ( const std::string  name)

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 
)
inlineprotected

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 
)
staticprotected

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
SchemaEntries makArchives::DtSchema::mySchemaEntries
protected

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

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)