VR-Exchange 2.2 API Documentation
variableLengthData.h
Go to the documentation of this file.
1 /*********************************************************************
2  ** Copyright (c) 1992-2010 VT MAK
3  ** All rights reserved.
4  *********************************************************************/
5 
6 #ifndef variableLengthData_H_
7 #define variableLengthData_H_
8 
12 
13 
14 #include <vector>
15 #include <list>
16 #include <iosfwd>
17 #include <namespace.h>
18 #include <vlutil/vlString.h>
19 #include <portal/addAttribute.h>
20 
21 namespace MAKVrExchange {
22 
25 class DT_DLL_LIBPORTAL DtVariableLengthData
26 {
27 public:
30  DtVariableLengthData(const char *data, unsigned int size);
31 
33 
36 
39 
41  DtVariableLengthData& operator=(const DtVariableLengthData &other);
42 
44  bool operator==(const DtVariableLengthData &other) const;
45  bool operator!=(const DtVariableLengthData &other) const;
46 
48  void setData(const char *data, unsigned int size);
49 
51  const char *data() const;
52 
54  const unsigned int size()const;
55 
57  virtual std::ostream &printDataToStream(std::ostream &stream) const;
58 
61  DtDEC_ATTRIBUTE(std::vector<char>, DataArray, dataArray);
63 
64 };
65 
67 typedef std::pair<DtString, DtVariableLengthData> DtAttributeValuePair;
68 
71 typedef std::list<DtAttributeValuePair> DtAttributeValuePairList;
72 
74 std::ostream & operator << (std::ostream &stream, const DtVariableLengthData &val);
75 
77 std::ostream & operator << (std::ostream &stream, const std::vector<DtString> &val);
78 
80 std::ostream & operator << (std::ostream &stream, const DtAttributeValuePair &val);
81 
83 std::ostream & operator << (std::ostream &stream, const DtAttributeValuePairList &val);
84 
85 }
86 
87 #endif //end #ifndef variableLengthData_H_

Document ID: Generated on Mon Apr 15 17:15:50 EDT 2013 from SVN revision 126154
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)