VR-Exchange 2.1 API Documentation
pEventReportInter.h
Go to the documentation of this file.
1 /******************************************************************************
2  ** Copyright (c) 1992-2010 VT MAK
3 ******************************************************************************/
4 
5 #ifndef pEventReportinter_H_
6 #define pEventReportinter_H_
7 
11 
12 
13 #include <portal/pBaseInteraction.h>
14 
15 namespace MAKVrExchange {
16 
17  class DtPortalConnection;
18 
22 
24  {
25  public:
27  typedef void (*functionCallback_type)
28  (const DtPortalEventReportInteraction &interaction, void *userData);
29 
32 
35 
41 
43 
44  DtDEC_ATTRIBUTE( DtString, SenderId, senderId );
45  DtDEC_ATTRIBUTE( DtString, ReceiverId, receiverId );
46  DtDEC_ATTRIBUTE( DtU32, EventType, eventType );
47 
49  DtDEC_ATTRIBUTE( DtFixedLengthDataArray, FixedDatums, fixedDatums );
50  DtDEC_ATTRIBUTE( DtAttributeValuePairList, VariableDatumSet, variableDatumSet );
52 
54  public:
55 
60 
61  //Doxygen comments inherited from parent class
62  virtual DtPortalMessageKind kind() const;
63 
64  //Doxygen comments inherited from parent class
65  virtual const char *interactionKindName() const;
66 
67  //Doxygen comments inherited from parent class
68  virtual unsigned int netSize() const;
69 
70  //Doxygen comments inherited from parent class
71  virtual void writeSelfToBuffer( void *buffer ) const;
72 
73  //Doxygen comments inherited from parent class
74  virtual void readSelfFromBuffer( const void *buffer );
75 
84  static void addCallback( DtPortalConnection *connection,
85  functionCallback_type callbackFunction,
86  void *userData );
87 
96  static void removeCallback( DtPortalConnection *connection,
97  functionCallback_type callbackFunction,
98  void *userData );
99 
107  static DtPortalMessage *create();
108 
109  //Doxygen comments inherited from parent class
110  virtual std::ostream &printDataToStream( std::ostream &str ) const;
111 
112  private:
113 
116 
118  int operator==( const DtPortalEventReportInteraction & );
119 
121  int operator!=( const DtPortalEventReportInteraction & );
122 
123  }; //end class DtPortalEventReportInteraction
124 
126  {
127  return new DtPortalEventReportInteraction();
128  }
129 
131  {
132  return "Event Report";
133  }
134 
136  {
137  return theKind;
138  }
139 
140 }
141 
142 #endif //end #ifndef pEventReportinter_H_

Document ID: Generated on Tue Aug 7 22:07:13 EDT 2012 from SVN revision 117874
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)