VR-Exchange 2.2 API Documentation
pGenericInter.h
Go to the documentation of this file.
1 /*********************************************************************
2  ** Copyright (c) 1992-2010 VT MAK
3  ** All rights reserved.
4  *********************************************************************/
5 
6 #ifndef pGenericInter_H_
7 #define pGenericInter_H_
8 
12 
13 
15 #include <vlutil/vlString.h>
16 #include <vlutil/vlNetTypes.h>
17 #include <matrix/vlVector.h>
18 
19 namespace MAKVrExchange {
20 
21 class DtPortalConnection;
22 
27 class DT_DLL_LIBPORTAL DtPortalGenericInteraction : public DtPortalBaseInteraction
28 {
29 public:
30 
31  typedef void (*DtPortalGenericInteractionCb)
32  (const DtPortalGenericInteraction &inter, void *usr);
33 
34 public:
35 
38 
40  virtual ~DtPortalGenericInteraction();
41 
44 
46  DtDEC_ATTRIBUTE(DtAttributeValuePairList, GenericAttributeValuePairList,
47  genericAttributeValuePairList);
48 
50  DtDEC_ATTRIBUTE(DtString, ClassName, className);
51 
53 
54 public:
55 
56  virtual DtPortalMessageKind kind() const;
57  virtual const char * interactionKindName() const;
58  virtual unsigned int netSize() const;
59  virtual void writeSelfToBuffer(void *buffer) const ;
60  virtual void readSelfFromBuffer(const void *buffer);
61  virtual std::ostream &printDataToStream(std::ostream &str) const;
62 
63 public:
64 
66 
67  static DtPortalMessage *create();
68 
69  static void addCallback(DtPortalConnection *conn,
70  DtPortalGenericInteractionCb cb, void *usr);
71  static void removeCallback(DtPortalConnection *conn,
72  DtPortalGenericInteractionCb cb, void *usr);
73 
74 
75 };
76 }
77 
78 #endif //end #ifndef pGenericInter_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)