VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
keyValuePairList.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2017 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
14 #include <vl/globalObjectDesignator.h>
15 #include <vlpi/entityIdentifier.h>
16 #include <vlpi/entityType.h>
17 #include <vlutil/vlMachineTypes.h>
18 #include <vlutil/vlString.h>
19 #include <matrix/vlVector.h>
20 #include <vector>
21 
25 {
26 public:
27 
31 
32  DtKeyValuePairList& operator=(const DtKeyValuePairList& orig);
33 
34  virtual void setKeyValuePairList(const std::vector<DtKeyValuePair>& val);
35  virtual const std::vector<DtKeyValuePair>& keyValuePairList() const;
36  virtual void addKeyValuePair(const DtKeyValuePair& val);
37 
39  virtual void setValue(const DtString& key, const DtString& val);
40 
42  virtual void remove(const DtString& key);
43 
44  bool operator==(const DtKeyValuePairList& other) const;
45  bool operator!=(const DtKeyValuePairList& other) const;
46 
47  int netSize() const;
48  static int octetBoundary();
49  unsigned int getPaddingSize(DtU64 byteOffset, unsigned int boundary, unsigned int hint = 1) const;
50 
51  void writeToBuffer( char* buffer ) const;
52  void fillFromBuffer( const char* buffer, int bufferSize, int offset );
53 
54  virtual void printData() const;
55 
56  virtual void printDataToStream(std::ostream &) const;
57 
58 protected:
59 
60  std::vector<DtKeyValuePair> myKeyValuePairList;
61 
62 };
63 
64 DT_DLL_vrfExtObjects std::ostream& operator << ( std::ostream& stream, const DtKeyValuePairList& );

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)