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

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)