VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
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 
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 Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)