VR-Forces 4.2 Class Documentation
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 
22 {
23 private:
24 public:
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 
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 Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)