VR-Forces 4.1.1 Class Documentation
extendedTypeEncoding.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #ifndef extendedTypeEncoding_H_
11 #define extendedTypeEncoding_H_
12 
13 #include <vrvUtil/vrvUtil.h>
14 
15 #include <map>
16 #include <vector>
17 #include <string>
18 
19 class DtVector;
20 class DtTaitBryan;
21 class DtQuaternion;
22 
23 namespace makVrv
24 {
25  class DtMessage;
26 
27  DT_DLL_VRVUTIL DtMessage& operator<<( DtMessage& msg,const DtVector& vector );
28  DT_DLL_VRVUTIL DtMessage& operator>>( DtMessage& msg,DtVector& vector );
29  DT_DLL_VRVUTIL DtMessage& operator>>( DtMessage& msg,DtTaitBryan& tb );
30  DT_DLL_VRVUTIL DtMessage& operator<<( DtMessage& msg,const DtTaitBryan& tb );
31  DT_DLL_VRVUTIL DtMessage& operator<<( DtMessage& msg,const DtQuaternion& quat );
32  DT_DLL_VRVUTIL DtMessage& operator>>( DtMessage& msg,DtQuaternion& quat );
33 
35  template <typename K,typename V, typename Pr,typename Alloc>
36  DtMessage& encodeMapInMessage(DtMessage& msg, const std::map<K,V,Pr,Alloc>& map);
37 
39  template <typename K,typename V, typename Pr,typename Alloc>
40  DtMessage& decodeMapFromMessage(DtMessage& msg, std::map<K,V,Pr,Alloc>& map);
41 
42  DT_DLL_VRVUTIL DtMessage& operator<<( DtMessage& msg,const std::map<std::string,std::string>& map );
43  DT_DLL_VRVUTIL DtMessage& operator>>( DtMessage& msg,std::map<std::string,std::string>& map);
44 
45 
47  template <typename Elem, typename Alloc>
48  DtMessage& encodeStdVectorInMessage(DtMessage& msg, const std::vector<Elem, Alloc>& v);
49 
51  template <typename Elem, typename Alloc>
52  DtMessage& decodeStdVectorFromMessage(DtMessage& msg, std::vector<Elem, Alloc>& v);
53 
54  DT_DLL_VRVUTIL DtMessage& operator<<( DtMessage& msg, const std::vector<std::string>& v);
55  DT_DLL_VRVUTIL DtMessage& operator>>( DtMessage& msg, std::vector<std::string>& v);
56 
57  DT_DLL_VRVUTIL DtMessage& operator<<( DtMessage& msg, const std::vector<unsigned long long>& v);
58  DT_DLL_VRVUTIL DtMessage& operator>>( DtMessage& msg, std::vector<unsigned long long>& v);
59 
60  DT_DLL_VRVUTIL DtMessage& operator<<( DtMessage& msg, const std::vector<unsigned int>& v);
61  DT_DLL_VRVUTIL DtMessage& operator>>( DtMessage& msg, std::vector<unsigned int>& v);
62 
63  DT_DLL_VRVUTIL DtMessage& operator<<( DtMessage& msg, const std::vector<double>& v);
64  DT_DLL_VRVUTIL DtMessage& operator>>( DtMessage& msg, std::vector<double>& v);
65 
66  DT_DLL_VRVUTIL DtMessage& operator<<( DtMessage& msg, const std::vector<DtVector>& v);
67  DT_DLL_VRVUTIL DtMessage& operator>>( DtMessage& msg, std::vector<DtVector>& v);
68 }
69 
70 #endif
71 

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)