VR-Forces Developer's Guide
 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 <vlutil/vlString.h>
14 #include <ostream>
15 
19 {
20 public:
21 
23  DtKeyValuePair(const DtString& key, const DtString& val);
24  DtKeyValuePair(const DtKeyValuePair& orig);
25  ~DtKeyValuePair();
26 
27  DtKeyValuePair& operator=(const DtKeyValuePair& orig);
28 
29  virtual void setKey(const DtString& val);
30  virtual const DtString& key() const;
31  virtual void setValue(const DtString& val);
32  virtual const DtString& value() const;
33 
34  bool operator==(const DtKeyValuePair& other) const;
35  bool operator!=(const DtKeyValuePair& other) const;
36 
37  int netSize() const;
38  static int octetBoundary();
39  unsigned int getPaddingSize(DtU64 byteOffset, unsigned int boundary) const;
40 
41  void writeToBuffer( char* buffer ) const;
42  void fillFromBuffer( const char* buffer, int bufferSize, int offset );
43 
44  virtual void printData() const;
45  virtual void printDataToStream(std::ostream &) const;
46 
47 protected:
48 
51 
52 };
53 
54 DT_DLL_vrfExtProtocol std::ostream& operator << ( std::ostream& stream, const DtKeyValuePair& );
DT_DLL_terrainCS bool operator==(const DtDegMinSec &lhs, const DtDegMinSec &rhs)
DT_DLL_features std::ostream & operator<<(std::ostream &, const DtFeatureTransform &)
std::ostream output.
Definition: keyValuePair.h:18
DtString myKey
Definition: keyValuePair.h:49
voidpf stream
Definition: ioapi.h:39
#define DT_DLL_vrfExtProtocol
Definition: vrfExtProtocolDefines.h:23
DtString myValue
Definition: keyValuePair.h:50
DT_DLL_terrainCS bool operator!=(const DtDegMinSec &lhs, const DtDegMinSec &rhs)
voidpf uLong offset
Definition: ioapi.h:42

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)