VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
keyValuePair.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 <vlutil/vlString.h>
12 #include <vl/globalObjectDesignator.h>
13 #include <vlpi/entityType.h>
14 #include <vlpi/entityIdentifier.h>
15 #include <matrix/vlVector.h>
16 #include <vector>
17 
18 
19 
21 
24 {
25 public:
27  DtKeyValuePair(const DtString& key, const DtString& val);
28  ~DtKeyValuePair();
29  DtKeyValuePair(const DtKeyValuePair& orig);
30  DtKeyValuePair& operator=(const DtKeyValuePair& orig);
31 
32  virtual void setKey(const DtString& val);
33  virtual const DtString& key() const;
34  virtual void setValue(const DtString& val);
35  virtual const DtString& value() const;
36 
37  bool operator==(const DtKeyValuePair& other) const;
38  bool operator!=(const DtKeyValuePair& other) const;
39 
40  int netSize() const;
41  static int octetBoundary();
42  unsigned int getPaddingSize(DtU64 byteOffset, unsigned int boundary) const;
43 
44  void writeToBuffer( char* buffer ) const;
45  void fillFromBuffer( const char* buffer, int bufferSize, int offset );
46 
47  virtual void printData() const;
48  virtual void printDataToStream(std::ostream &) const;
49 
50 protected:
51 
54 };
55 
56 DT_DLL_vrfExtObjects std::ostream& operator<<(std::ostream& stream, const DtKeyValuePair&);
57 
58 

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)