VR-Forces 4.0.4 Class Documentation
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Friends
makArchives::DtSchemaEntry Class Reference

The makArchives::DtSchemaEntry class is a collection of makArchives::DtSchemaParameter objects. More...

List of all members.

Public Types

typedef std::vector
< DtSchemaParameter
DtSchemaParameters

Public Member Functions

 DtSchemaEntry ()
 CTOR.
 DtSchemaEntry (const std::string &name)
 CTOR.
 DtSchemaEntry (const DtSchemaEntry &copy)
 CopyCTOR.
 ~DtSchemaEntry ()
 DTOR.
DtSchemaEntryoperator= (const DtSchemaEntry &copy)
 Assignment Op.
const std::string & name () const
 get the schema's name.
void setName (const std::string &n)
 set the schema's name.
virtual void addParameter (const DtSchemaParameter &parameter)
 Add a parameter.
virtual bool removeSchemaParameter (const std::string name)
 Remove a schema parameter.
const DtSchemaParametersschemaParameters () const
 Get the collection of schema parameters.
virtual bool renameParameter (const std::string &oldName, const std::string &newName)
 Renames parameter from old to new name. Returns true if renamed.
DtSchemaParameterfindSchemaParameter (const std::string name)
 a schema parameter by name.
const DtSchemaParameterfindSchemaParameter (const std::string name) const
 a schema parameter by name.

Static Public Member Functions

static const DtSchemaEntrydefaultInstance ()
 Returns a schema entry instance containing default required parameters.

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 findSchemaFunction (const DtSchemaParameter &parameter, const std::string &name)
 predicate for finding a schema in a collection

Protected Attributes

std::string myName
DtSchemaParameters myParameters

Friends

class boost::serialization::access

Detailed Description

The makArchives::DtSchemaEntry class is a collection of makArchives::DtSchemaParameter objects.

A schema entry will make up a DtSchema and will be written out as part of that class


Member Typedef Documentation


Constructor & Destructor Documentation

CTOR.

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

CTOR.

CopyCTOR.

DTOR.


Member Function Documentation

Returns a schema entry instance containing default required parameters.

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

Assignment Op.

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

get the schema's name.

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

set the schema's name.

virtual void makArchives::DtSchemaEntry::addParameter ( const DtSchemaParameter parameter) [virtual]

Add a parameter.

virtual bool makArchives::DtSchemaEntry::removeSchemaParameter ( const std::string  name) [virtual]

Remove a schema parameter.

Returns whether the parameter was removed successfully.

Get the collection of schema parameters.

virtual bool makArchives::DtSchemaEntry::renameParameter ( const std::string &  oldName,
const std::string &  newName 
) [virtual]

Renames parameter from old to new name. Returns true if renamed.

a schema parameter by name.

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

const DtSchemaParameter* makArchives::DtSchemaEntry::findSchemaParameter ( const std::string  name) const

a schema parameter by name.

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

template<typename Archive >
void makArchives::DtSchemaEntry::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::DtSchemaEntry::findSchemaFunction ( const DtSchemaParameter parameter,
const std::string &  name 
) [static, protected]

predicate for finding a schema in a collection


Friends And Related Function Documentation

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

Member Data Documentation

std::string makArchives::DtSchemaEntry::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)