VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
DtVariableGroup Class Reference

Represents a group of variables. More...

+ Inheritance diagram for DtVariableGroup:
+ Collaboration diagram for DtVariableGroup:

Public Member Functions

 DtVariableGroup (DtVariableGroup *parent, const DtString &groupName, const DtString &groupType="", const DtString &aDescription="")
virtual ~DtVariableGroup ()
virtual void addBaseVariable (DtBaseConfigVariable *var)
virtual bool changeOnce () const
 What does this do????
virtual const DtStringname () const
 Get the group's name.
virtual bool isRequired () const
 Get if the group is required.
virtual void getCommandLineArg (DtCmdLine::CmdLine &cmdLine)
 Get the command line arguments.
virtual void updateFromCommandLineArg ()
 Update the value by its argument.
virtual void getEnvironmentSchemaType (DtEnvironment env, TypeSet &usedTypes) const
 Get an environment value which represents the XML scheme type.
virtual DtEnvValueSP getEnvironmentValue (DtEnvironment env)
 Get an environment value which represent the value of the var.
virtual void updateFromEnvironment (DtEnvironment env)
 Synchronize the var with an environment.
virtual DtString type () const
 Get the Var's type.
DtEnvValueSP getGroupValue (DtEnvironment env)
- Public Member Functions inherited from DtBaseConfigVariable
 DtBaseConfigVariable (DtVariableGroup *settings, DtVariableScope aScope, const DtString &aDescription)
 CTOR.
virtual ~DtBaseConfigVariable ()
 DTOR.
DtBaseConfigVariableoperator= (const DtBaseConfigVariable &other)
 Assignment operator.
DtVariableScope scope () const
 Get the scope of this variable.
const DtStringdescription () const
bool inConfigFile () const
 Is this var used in the config line.
bool inCommandLine () const
 Is this var used in the command line.
bool isSet () const
 Check to see if the value has been set.

Protected Types

typedef std::list
< DtBaseConfigVariable * > 
VariableList

Protected Member Functions

 DtVariableGroup (const DtVariableGroup &other)
 Copy CTOR (not implemented).
DtVariableGroupoperator= (const DtVariableGroup &other)
 Assignment operator (not implemented).
- Protected Member Functions inherited from DtBaseConfigVariable
 DtBaseConfigVariable (const DtBaseConfigVariable &other)
 Copy CTOR (not implemented).

Protected Attributes

DtString myName
DtString myType
DtVariableGroupmyParent
VariableList myVars
- Protected Attributes inherited from DtBaseConfigVariable
DtVariableScope myScope
 My scope.
bool mySetFlag
 Stores a flag to determine if this var has been set yet.
DtCmdLine::ArgmyArg
 Stores the argument relating with this var.
DtString myDescription
 Stores a description of the variable.

Additional Inherited Members

- Public Types inherited from DtBaseConfigVariable
enum  DtVariableScope { DtScopeInternal, DtScopeConfigFile, DtScopeCommandLine, DtScopeBoth }
typedef std::set< DtStringTypeSet
- Static Public Member Functions inherited from DtBaseConfigVariable
static DtEnvValueSP createSchemaDeclaration (DtEnvironment env, const DtString &name, const DtString &type)
static DtEnvValueSP createSimpleSchemaType (DtEnvironment env, const DtString &typeName, const DtString &xsType)
 Help function for simple types.
static DtEnvValueSP createComplexSchemaType (DtEnvironment env, const DtString &typeName, bool ordered, const std::list< DtBaseConfigVariable * > &members)
 Create a complex schema type.

Detailed Description

Represents a group of variables.

Member Typedef Documentation

typedef std::list<DtBaseConfigVariable*> DtVariableGroup::VariableList
protected

Constructor & Destructor Documentation

DtVariableGroup::DtVariableGroup ( DtVariableGroup parent,
const DtString groupName,
const DtString groupType = "",
const DtString aDescription = "" 
)
virtual DtVariableGroup::~DtVariableGroup ( )
virtual
DtVariableGroup::DtVariableGroup ( const DtVariableGroup other)
protected

Copy CTOR (not implemented).

Member Function Documentation

virtual void DtVariableGroup::addBaseVariable ( DtBaseConfigVariable var)
virtual
virtual bool DtVariableGroup::changeOnce ( ) const
virtual

What does this do????

Reimplemented in DtApplicationSettings.

virtual void DtVariableGroup::getCommandLineArg ( DtCmdLine::CmdLine cmdLine)
virtual

Get the command line arguments.

Implements DtBaseConfigVariable.

virtual void DtVariableGroup::getEnvironmentSchemaType ( DtEnvironment  env,
TypeSet usedTypes 
) const
virtual

Get an environment value which represents the XML scheme type.

Implements DtBaseConfigVariable.

virtual DtEnvValueSP DtVariableGroup::getEnvironmentValue ( DtEnvironment  env)
virtual

Get an environment value which represent the value of the var.

If the var type does not support environment representation a NULL smart pointer should be returned.

Implements DtBaseConfigVariable.

DtEnvValueSP DtVariableGroup::getGroupValue ( DtEnvironment  env)
virtual bool DtVariableGroup::isRequired ( ) const
virtual

Get if the group is required.

Implements DtBaseConfigVariable.

virtual const DtString& DtVariableGroup::name ( ) const
virtual

Get the group's name.

Implements DtBaseConfigVariable.

DtVariableGroup& DtVariableGroup::operator= ( const DtVariableGroup other)
protected

Assignment operator (not implemented).

virtual DtString DtVariableGroup::type ( ) const
virtual

Get the Var's type.

Implements DtBaseConfigVariable.

virtual void DtVariableGroup::updateFromCommandLineArg ( )
virtual

Update the value by its argument.

This function will not be called if getArg returns NULL.

Implements DtBaseConfigVariable.

virtual void DtVariableGroup::updateFromEnvironment ( DtEnvironment  env)
virtual

Synchronize the var with an environment.

This function will not be called if getEnvironmentValue() returns NULL.

Implements DtBaseConfigVariable.

Member Data Documentation

DtString DtVariableGroup::myName
protected
DtVariableGroup* DtVariableGroup::myParent
protected
DtString DtVariableGroup::myType
protected
VariableList DtVariableGroup::myVars
protected

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

Document ID: Generated on Wed Jan 7 13:31:29 EST 2015 from SVN revision 149162
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)