VR-Forces Development_Version Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
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
/******************************************************************************
6
** $RCSfile: DtConfiguration.h,v $ $Revision: 1.15 $ $State: Exp $
7
******************************************************************************/
8
12
13
#ifndef DtConfiguration_H_
14
#define DtConfiguration_H_
15
16
#include <
vrvUtil/DtProxy.h
>
17
#include <
makArchives/DtSerialize.h
>
18
#include <boost/serialization/version.hpp>
19
20
#include <string>
21
22
namespace
makVrv
23
{
24
27
class
DT_DLL_VRVUTIL
DtConfiguration
28
{
29
public
:
30
31
typedef
std::map<std::string,std::string>
ParameterMap
;
32
34
DtConfiguration
(
const
std::string& name =
""
);
35
37
DtConfiguration
(
const
DtConfiguration
&);
38
40
DtConfiguration
& operator=(
const
DtConfiguration
&);
41
43
virtual
~
DtConfiguration
();
44
46
virtual
const
std::string& name()
const
;
47
49
virtual
void
setName(
const
std::string& name);
50
52
virtual
const
std::string* findOptionalParameter(
const
std::string& name)
const
;
53
55
virtual
void
setOptionalParameter(
const
std::string& name,
const
std::string& value);
56
59
virtual
void
setOptionalParameters(
const
ParameterMap
&);
60
62
virtual
void
removeOptionalParameter(
const
std::string& name);
63
65
const
ParameterMap
& optionalParameters()
const
;
66
77
DT_DECLARE_ALL_serialize_FUNCTIONS
78
79
protected
:
80
82
template
<
class
Archive>
83
void
_serialize(Archive & ar,
const
unsigned
int
version)
84
{
85
ar &
DT_SERIALIZE_MEMBER
(myName);
86
ar &
DT_SERIALIZE_MEMBER
(myOptionalParameters);
87
}
88
89
std::string
myName
;
90
91
ParameterMap
myOptionalParameters
;
92
93
DtProxyWP
myAttachedInterface
;
94
95
};
96
}
97
98
BOOST_CLASS_VERSION
(
makVrv::DtConfiguration
,1);
99
100
#endif
Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)