VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
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
65
protected
:
66
};
67
68
namespace
DtBufferSerialize
69
{
70
DT_DLL_vrfutil
char
*
encode
(
const
DtRwKeyValueList
& val,
char
*buffer);
71
DT_DLL_vrfutil
const
char
*
decode
(
DtRwKeyValueList
& val,
const
char
*buffer) ;
72
DT_DLL_vrfutil
int
getSize
(
const
DtRwKeyValueList
& val);
73
74
}
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)