VR-Link API Documentation for HLA Evolved
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
mtl
appSettings.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
******************************************************************************/
5
6
8
9
#ifndef appSettings_H_
10
#define appSettings_H_
11
12
#include "
varGroup.h
"
13
#include "
envReader.h
"
14
15
#ifdef DtUSE_UTILITIES_NAMESPACE
16
namespace
DtUSE_UTILITIES_NAMESPACE
17
{
18
#endif
19
20
21
class
DtString
;
22
class
DtBaseVar;
23
class
DtEnvironment
;
24
25
26
class
DT_DLL_MTL
DtApplicationSettings
:
public
DtVariableGroup
27
{
28
public
:
29
DtApplicationSettings
(
const
DtString
& applicationName,
30
const
DtString
& appVersion,
31
const
DtString
& implicitGroupName =
"settings"
);
32
33
void
setChangeOnce(
bool
flag);
34
virtual
bool
changeOnce()
const
;
35
36
void
parseCommandLine(
int
argc,
char
** argv,
37
#ifdef _WIN32
38
bool
pressAnyKey =
true
);
39
#else
40
bool
pressAnyKey =
false
);
41
#endif
42
bool
loadConfigFile(
const
DtString
& filename);
43
44
bool
loadMtlFile(
const
DtString
& filename);
45
bool
loadXmlFile(
const
DtString
& filename);
46
47
void
saveConfigFile(
const
DtString
& filename,
const
DtString
& schemaName,
48
bool
generateSchemaFile =
false
);
49
void
generateConfigFileSchema(
const
DtString
& filename)
const
;
50
void
generateElements(
DtEnvironment
worker )
const
;
51
void
addBaseVar(
DtBaseConfigVariable
* var);
52
53
protected
:
54
bool
readFileIntoEnvironment(
const
DtString
& filename,
55
DtEnvReader
& reader);
56
57
protected
:
58
DtString
myAppName
;
59
DtString
myAppVersion
;
60
DtVariableGroup
*
myRootGroup
;
61
bool
myChangeOnceFlag
;
62
};
63
64
#ifdef DtUSE_UTILITIES_NAMESPACE
65
}
66
#endif
67
68
#endif
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
)