VR-Link API Documentation for DIS
List of all members | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
DtConfigVariable< T > Class Template Reference
+ Inheritance diagram for DtConfigVariable< T >:
+ Collaboration diagram for DtConfigVariable< T >:

Public Member Functions

 DtConfigVariable (DtVariableGroup *group, const DtString &aName, T aDefault, const DtString &aDescription="", DtVariableScope aScope=DtBaseConfigVariable::DtScopeBoth, bool isRequired=false, const DtString &aShortcut="")
 Var CTOR, using Group pointer.
 DtConfigVariable (DtVariableGroup &group, const DtString &aName, T aDefault, const DtString &aDescription="", DtVariableScope aScope=DtBaseConfigVariable::DtScopeBoth, bool isRequired=false, const DtString &aShortcut="")
 Var CTOR, using Group reference.
 DtConfigVariable (DtVariableGroup *group, const DtConfigVariable< T > &orig)
 Var Copy CTOR, using Group pointer.
 DtConfigVariable (DtVariableGroup &group, const DtConfigVariable< T > &orig)
 Var Copy CTOR, using Group reference.
virtual ~DtConfigVariable ()
 DTOR.
DtConfigVariableoperator= (const DtConfigVariable &rhs)
 Assignment operator.
virtual void getCommandLineArg (DtCmdLine::CmdLine &)
 Create a command line argument for the native value.
virtual void updateFromCommandLineArg ()
 Update the native value from the command line argument.
virtual void getEnvironmentSchemaType (DtEnvironment env, TypeSet &usedTypes) const
 Get Environment schema type.
virtual DtEnvValueSP getEnvironmentValue (DtEnvironment env)
 Create an Environment Value from the native value.
virtual void updateFromEnvironment (DtEnvironment env)
 Update the native value from the Environment Value.
virtual DtString type () const
 Get the Var's type.
virtual bool isRequired () const
 Get if the var is required.
T * getInternalPtrValue ()
Get/Set the variable name.
virtual const DtStringname () const
 Get the Var's name.
void setName (const DtString &name)
Get/Set the variable value.
value () const
void setValue (T aValue)
Get/Set the variable's shortcut
const DtStringshortcut () const
void setShortcut (const DtString &aShortcut)
Get/Set the default value.
defaultValue () const
void setDefaultValue (T aDefault)
- 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 DtVarType< T >::ArgType ArgType

Protected Member Functions

 DtConfigVariable (const DtConfigVariable &other)
 Copy CTOR (not implemented).
- Protected Member Functions inherited from DtBaseConfigVariable
 DtBaseConfigVariable (const DtBaseConfigVariable &other)
 Copy CTOR (not implemented).

Protected Attributes

DtString myName
DtString myShortcut
bool myRequiredFlag
DtVariableGroupmyGroup
myDefault
myValue
- 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.

Member Typedef Documentation

template<typename T>
typedef DtVarType<T>::ArgType DtConfigVariable< T >::ArgType
protected

Constructor & Destructor Documentation

template<typename T>
DtConfigVariable< T >::DtConfigVariable ( DtVariableGroup group,
const DtString aName,
aDefault,
const DtString aDescription = "",
DtVariableScope  aScope = DtBaseConfigVariable::DtScopeBoth,
bool  isRequired = false,
const DtString aShortcut = "" 
)

Var CTOR, using Group pointer.

template<typename T>
DtConfigVariable< T >::DtConfigVariable ( DtVariableGroup group,
const DtString aName,
aDefault,
const DtString aDescription = "",
DtVariableScope  aScope = DtBaseConfigVariable::DtScopeBoth,
bool  isRequired = false,
const DtString aShortcut = "" 
)

Var CTOR, using Group reference.

template<typename T>
DtConfigVariable< T >::DtConfigVariable ( DtVariableGroup group,
const DtConfigVariable< T > &  orig 
)

Var Copy CTOR, using Group pointer.

template<typename T>
DtConfigVariable< T >::DtConfigVariable ( DtVariableGroup group,
const DtConfigVariable< T > &  orig 
)

Var Copy CTOR, using Group reference.

template<typename T>
virtual DtConfigVariable< T >::~DtConfigVariable ( )
virtual

DTOR.

template<typename T>
DtConfigVariable< T >::DtConfigVariable ( const DtConfigVariable< T > &  other)
protected

Copy CTOR (not implemented).

Member Function Documentation

template<typename T>
T DtConfigVariable< T >::defaultValue ( ) const
template<typename T>
virtual void DtConfigVariable< T >::getCommandLineArg ( DtCmdLine::CmdLine )
virtual

Create a command line argument for the native value.

Implements DtBaseConfigVariable.

template<typename T>
virtual void DtConfigVariable< T >::getEnvironmentSchemaType ( DtEnvironment  env,
TypeSet usedTypes 
) const
virtual

Get Environment schema type.

Implements DtBaseConfigVariable.

template<typename T>
virtual DtEnvValueSP DtConfigVariable< T >::getEnvironmentValue ( DtEnvironment  env)
virtual

Create an Environment Value from the native value.

Implements DtBaseConfigVariable.

template<typename T>
T* DtConfigVariable< T >::getInternalPtrValue ( )
template<typename T>
virtual bool DtConfigVariable< T >::isRequired ( ) const
virtual

Get if the var is required.

Implements DtBaseConfigVariable.

template<typename T>
virtual const DtString& DtConfigVariable< T >::name ( ) const
virtual

Get the Var's name.

Implements DtBaseConfigVariable.

Referenced by DtMtlEnvironment::registerConfigVar().

template<typename T>
DtConfigVariable& DtConfigVariable< T >::operator= ( const DtConfigVariable< T > &  rhs)

Assignment operator.

template<typename T>
void DtConfigVariable< T >::setDefaultValue ( aDefault)
template<typename T>
void DtConfigVariable< T >::setName ( const DtString name)
template<typename T>
void DtConfigVariable< T >::setShortcut ( const DtString aShortcut)
template<typename T>
void DtConfigVariable< T >::setValue ( aValue)
template<typename T>
const DtString& DtConfigVariable< T >::shortcut ( ) const
template<typename T>
virtual DtString DtConfigVariable< T >::type ( ) const
virtual

Get the Var's type.

Implements DtBaseConfigVariable.

template<typename T>
virtual void DtConfigVariable< T >::updateFromCommandLineArg ( )
virtual

Update the native value from the command line argument.

Implements DtBaseConfigVariable.

template<typename T>
virtual void DtConfigVariable< T >::updateFromEnvironment ( DtEnvironment  env)
virtual

Update the native value from the Environment Value.

Implements DtBaseConfigVariable.

template<typename T>
T DtConfigVariable< T >::value ( ) const

Member Data Documentation

template<typename T>
T DtConfigVariable< T >::myDefault
protected
template<typename T>
DtVariableGroup* DtConfigVariable< T >::myGroup
protected
template<typename T>
DtString DtConfigVariable< T >::myName
protected
template<typename T>
bool DtConfigVariable< T >::myRequiredFlag
protected
template<typename T>
DtString DtConfigVariable< T >::myShortcut
protected
template<typename T>
T DtConfigVariable< T >::myValue
protected

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

Document ID: Generated on Wed Oct 23 22:25:48 EDT 2013 from SVN revision 132765
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)