VR-Exchange 2.9 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
variableLengthData.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2016 MAK Technologies, Inc.
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <portal/dllExport.h>
13 #include <portal/addAttribute.h>
14 #include <vlutil/vlString.h>
15 #include <vector>
16 #include <iosfwd>
17 #include <list>
18 
19 namespace MAKVrExchange
20 {
21 
25  {
26  public:
27 
30 
33  DtVariableLengthData( const char* data, unsigned int size );
34 
37 
40 
42  DtVariableLengthData& operator = ( const DtVariableLengthData& other );
43 
46 
47  bool operator == ( const DtVariableLengthData& other ) const;
48  bool operator != ( const DtVariableLengthData& other ) const;
49 
51 
53  void setData( const char* data, unsigned int size );
54 
56  const char* data() const;
57 
59  const unsigned int size() const;
60 
62  virtual std::ostream& printDataToStream( std::ostream& stream ) const;
63 
66 
67  DtDEC_ATTRIBUTE( std::vector<char>, DataArray, dataArray );
68 
70 
71  };
72 
73 
75  typedef std::pair<DtString,DtVariableLengthData> DtAttributeValuePair;
76 
79  typedef std::list<DtAttributeValuePair> DtAttributeValuePairList;
80 
82  std::ostream & operator << ( std::ostream& stream, const DtVariableLengthData& val );
83 
85  std::ostream & operator << ( std::ostream& stream, const DtAttributeValuePair& val );
86 
88  std::ostream & operator << ( std::ostream& stream, const DtAttributeValuePairList& val );
89 
90 }
Represents variable length byte arrays.
Definition: variableLengthData.h:24
std::pair< DtString, DtVariableLengthData > DtAttributeValuePair
A std::pair keyed with a DtString, and whos value is a DtVariableLengthData byte array.
Definition: variableLengthData.h:75
#define DT_DLL_LIBPORTAL
Definition: include/portal/dllExport.h:20
#define DtDEC_ATTRIBUTE(T, N, n)
A Macro to define an attribute; as well as make an accessor and mutator for that attribute.
Definition: addAttribute.h:49
DT_DLL_LIBPORTAL std::ostream & operator<<(std::ostream &stream, const DtActiveSonarBeamData &data)
Contains the DtDEC_ATTRIBUTE macros.
std::list< DtAttributeValuePair > DtAttributeValuePairList
A list of DtAttributeValuePairs.
Definition: variableLengthData.h:79

Document ID: Generated on Tue Jun 25 16:45:35 EDT 2024 from SVN revision 267383
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)