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

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)