VR-Forces 4.6 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrfutil
rwKeyValueList.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2010 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
10
11
#pragma once
12
13
#include "
vrfutil/vrfutilDefines.h
"
14
#include "
vrfutil/rwStringList.h
"
15
#include <map>
16
#include <vlutil/vlString.h>
17
21
class
DT_DLL_vrfutil
DtRwKeyValueList
:
public
DtRwStringList
22
{
23
private
:
24
public
:
26
DtRwKeyValueList
();
27
29
DtRwKeyValueList
(
const
DtString
& name,
DtReaderWriterRegistry
*
const
parentRegistry = NULL);
30
DtRwKeyValueList
(
const
DtSymbolString
& name,
DtReaderWriterRegistry
*
const
parentRegistry = NULL);
31
33
virtual
~
DtRwKeyValueList
();
34
36
DtRwKeyValueList
(
const
DtRwKeyValueList
& orig,
DtReaderWriterRegistry
*
const
parentRegistry = NULL);
37
39
DtRwKeyValueList
&
operator=
(
const
DtRwKeyValueList
& orig);
40
43
virtual
void
add
(
const
DtString
& key,
const
DtString
& value);
45
virtual
void
remove
(
const
DtString
& key);
47
virtual
void
clear();
48
50
virtual
bool
contains(
const
DtString
& key)
const
;
53
virtual
DtString
find(
const
DtString
& key)
const
;
54
58
virtual
std::map<DtString, DtString> convertToMap()
const
;
59
63
virtual
void
setFromMap(
const
std::map<DtString, DtString> sourceMap);
64
66
static
const
char
*
theXmlType
();
67
68
virtual
const
char
*
xmlType
()
const
69
{
70
return
theXmlType
();
71
}
72
virtual
const
char
*
readerWriterType
()
const
;
73
74
virtual
void
populateListByType
(
75
boost::function<
void
(
DtReaderWriter
*)> addFunction,
76
DtEnvironmentSP
env, DtEnvValueSP node,
const
DtString
& bindingType,
77
const
DtReaderWriter::SearchPaths
& searchPaths,
const
DtVariableBindingsList
& bindings);
78
81
virtual
bool
isUserEditable()
const
;
82
83
protected
:
84
89
bool
myIsUserEditable
;
90
};
91
92
namespace
DtBufferSerialize
93
{
94
DT_DLL_vrfutil
char
*
encode
(
const
DtRwKeyValueList
& val,
char
*buffer);
95
DT_DLL_vrfutil
const
char
*
decode
(
DtRwKeyValueList
& val,
const
char
*buffer) ;
96
DT_DLL_vrfutil
int
getSize
(
const
DtRwKeyValueList
& val);
97
98
}
Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)