VR-Link API Documentation for HLA Evolved
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
DtApplicationSettings Class Reference
+ Inheritance diagram for DtApplicationSettings:
+ Collaboration diagram for DtApplicationSettings:

Public Member Functions

 DtApplicationSettings (const DtString &applicationName, const DtString &appVersion, const DtString &implicitGroupName="settings")
void setChangeOnce (bool flag)
virtual bool changeOnce () const
 What does this do????
void parseCommandLine (int argc, char **argv, bool pressAnyKey=false)
bool loadConfigFile (const DtString &filename)
bool loadMtlFile (const DtString &filename)
bool loadXmlFile (const DtString &filename)
void saveConfigFile (const DtString &filename, const DtString &schemaName, bool generateSchemaFile=false)
void generateConfigFileSchema (const DtString &filename) const
void generateElements (DtEnvironment worker) const
void addBaseVar (DtBaseConfigVariable *var)
- Public Member Functions inherited from DtVariableGroup
 DtVariableGroup (DtVariableGroup *parent, const DtString &groupName, const DtString &groupType="", const DtString &aDescription="")
virtual ~DtVariableGroup ()
virtual void addBaseVariable (DtBaseConfigVariable *var)
virtual bool isRequired () const
 Get if the group is required.
virtual const DtStringname () const
 Get the group's name.
virtual DtString type () const
 Get the Var's type.
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.
DtEnvValueSP getGroupValue (DtEnvironment env)
- Public Member Functions inherited from DtBaseConfigVariable
 DtBaseConfigVariable (DtVariableGroup *settings, DtVariableScope aScope, const DtString &aDescription)
 CTOR.
virtual ~DtBaseConfigVariable ()
 DTOR.
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 Member Functions

bool readFileIntoEnvironment (const DtString &filename, DtEnvReader &reader)

Protected Attributes

DtString myAppName
DtString myAppVersion
DtVariableGroupmyRootGroup
bool myChangeOnceFlag
- Protected Attributes inherited from DtVariableGroup
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.
- Protected Types inherited from DtVariableGroup
typedef std::list
< DtBaseConfigVariable * > 
VariableList

Constructor & Destructor Documentation

DtApplicationSettings::DtApplicationSettings ( const DtString applicationName,
const DtString appVersion,
const DtString implicitGroupName = "settings" 
)

Member Function Documentation

void DtApplicationSettings::addBaseVar ( DtBaseConfigVariable var)
virtual bool DtApplicationSettings::changeOnce ( ) const
virtual

What does this do????

Reimplemented from DtVariableGroup.

void DtApplicationSettings::generateConfigFileSchema ( const DtString filename) const
void DtApplicationSettings::generateElements ( DtEnvironment  worker) const
bool DtApplicationSettings::loadConfigFile ( const DtString filename)
bool DtApplicationSettings::loadMtlFile ( const DtString filename)
bool DtApplicationSettings::loadXmlFile ( const DtString filename)
void DtApplicationSettings::parseCommandLine ( int  argc,
char **  argv,
bool  pressAnyKey = false 
)
bool DtApplicationSettings::readFileIntoEnvironment ( const DtString filename,
DtEnvReader reader 
)
protected
void DtApplicationSettings::saveConfigFile ( const DtString filename,
const DtString schemaName,
bool  generateSchemaFile = false 
)
void DtApplicationSettings::setChangeOnce ( bool  flag)

Member Data Documentation

DtString DtApplicationSettings::myAppName
protected
DtString DtApplicationSettings::myAppVersion
protected
bool DtApplicationSettings::myChangeOnceFlag
protected
DtVariableGroup* DtApplicationSettings::myRootGroup
protected

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

Document ID: Generated on Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)