VR-Vantage 3.0 API Documentation
Home
Modules
Namespaces
Classes
Files
Libraries
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrvUtil
DtConfiguration.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2007 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
9
10
#ifndef DtConfiguration_H_
11
#define DtConfiguration_H_
12
13
#include <
vrvUtil/DtProxy.h
>
14
#include <
makArchives/DtSerialize.h
>
15
#include <boost/serialization/version.hpp>
16
17
#include <string>
18
19
namespace
makVrv
20
{
21
24
class
DT_DLL_VRVUTIL
DtConfiguration
25
{
26
public
:
27
28
typedef
std::map<std::string,std::string>
ParameterMap
;
29
31
DtConfiguration
(
const
std::string
&
name
=
""
);
32
34
DtConfiguration
(
const
DtConfiguration
&);
35
37
DtConfiguration
& operator=(
const
DtConfiguration
&);
38
40
virtual
~
DtConfiguration
();
41
43
virtual
const
std::string
&
name
()
const
;
44
46
virtual
void
setName(
const
std::string
&
name
);
47
49
virtual
const
std::string
* findOptionalParameter(
const
std::string
&
name
)
const
;
50
52
virtual
void
setOptionalParameter(
const
std::string
&
name
,
const
std::string
&
value
);
53
56
virtual
void
setOptionalParameters(
const
ParameterMap
&);
57
59
virtual
void
removeOptionalParameter(
const
std::string
&
name
);
60
62
const
ParameterMap
& optionalParameters()
const
;
63
74
DT_DECLARE_ALL_serialize_FUNCTIONS
75
76
protected
:
77
79
template
<
class
Archive>
80
void
_serialize(Archive & ar,
const
unsigned
int
version
)
81
{
82
ar &
DT_SERIALIZE_MEMBER
(myName);
83
ar &
DT_SERIALIZE_MEMBER
(myOptionalParameters);
84
}
85
86
std::string
myName
;
87
88
ParameterMap
myOptionalParameters
;
89
90
DtProxyWP
myAttachedInterface
;
91
92
};
93
}
94
95
BOOST_CLASS_VERSION
(
makVrv::DtConfiguration
,1);
96
97
#endif
Copyright © 2005-2022 MAK Technologies. All Rights Reserved (
www.mak.com
)