VR-Link API Documentation for DIS
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
mtl
multiConfigVariable.h
Go to the documentation of this file.
1
/****************************************************************************
2
* Copyright (c) 2013 VT MAK
3
* All rights reserved.
4
****************************************************************************/
5
9
10
#pragma once
11
12
#include "
baseConfigVariable.h
"
13
#include "
variableGroup.h
"
14
#include "
varType.h
"
15
16
#include <
mtl/environment.h
>
17
#include <
vlutil/vlExceptions.h
>
18
#include <
cmdLine/cmdLine.h
>
19
20
#include <vector>
21
22
template
<
typename
T>
23
class
DtMultiConfigVariable
:
public
DtBaseConfigVariable
24
{
25
public
:
26
28
DtMultiConfigVariable
(
DtVariableGroup
* group,
const
DtString
& aName,
29
const
DtString
& itemName,
const
DtString
& aDescription =
""
,
30
DtVariableScope
aScope =
DtBaseConfigVariable::DtScopeBoth
,
31
bool
isRequired
=
false
,
const
DtString
& aShortcut =
""
);
32
34
DtMultiConfigVariable
(
DtVariableGroup
& group,
const
DtString
& aName,
35
const
DtString
& itemName,
const
DtString
& aDescription =
""
,
36
DtVariableScope
aScope =
DtBaseConfigVariable::DtScopeBoth
,
37
bool
isRequired
=
false
,
const
DtString
& aShortcut =
""
);
38
40
DtMultiConfigVariable
(
DtVariableGroup
* group,
41
const
DtMultiConfigVariable<T>
& orig );
42
44
DtMultiConfigVariable
(
DtVariableGroup
& group,
45
const
DtMultiConfigVariable<T>
& orig );
46
48
virtual
~DtMultiConfigVariable
();
49
53
DtMultiConfigVariable
&
operator =
(
const
DtMultiConfigVariable
& other );
54
56
virtual
void
getCommandLineArg
(
DtCmdLine::CmdLine
&);
57
59
virtual
void
updateFromCommandLineArg
();
60
62
virtual
void
getEnvironmentSchemaType
(
DtEnvironment
env,
TypeSet
& usedTypes)
const
;
63
65
virtual
DtEnvValueSP
getEnvironmentValue
(
DtEnvironment
env);
66
68
virtual
void
updateFromEnvironment
(
DtEnvironment
env);
69
71
virtual
DtString
type
()
const
;
72
74
virtual
bool
isRequired
()
const
;
75
78
79
virtual
const
DtString
&
name
()
const
;
80
void
setName
(
const
DtString
& name );
81
83
86
87
const
std::vector<T>&
values
()
const
;
88
void
setValues
(
const
std::vector<T>& aValue);
89
void
addValue
(T aValue);
90
void
removeValue
(T aValue);
91
void
clearValues
();
93
95
98
99
const
DtString
&
shortcut
()
const
;
100
void
setShortcut
(
const
DtString
& aShortcut );
101
103
104
protected
:
105
107
DtMultiConfigVariable
(
const
DtMultiConfigVariable
& other );
108
109
protected
:
110
111
//Internal Type
112
typedef
typename
DtVarType<T>::ArgType
ArgType
;
113
114
DtString
myName
;
115
DtString
myItemName
;
116
DtString
myShortcut
;
117
bool
myRequiredFlag
;
118
119
DtVariableGroup
*
myGroup
;
120
121
std::vector<T>
myValues
;
122
123
};
124
125
#include "multiConfigVariable.inl"
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
)