VR-Exchange 2.1 API Documentation
pRepairResponseInteraction.h
Go to the documentation of this file.
1 /******************************************************************************
2  ** Copyright (c) 1992-2010 VT MAK
3 ******************************************************************************/
4 
5 #pragma once
6 
10 
11 
12 #include <portal/pBaseInteraction.h> //class DtPortalBaseInteraction
14 
15 namespace MAKVrExchange {
16 
17 class DtPortalConnection;
18 
22 
24 {
25 public:
27  typedef void (*functionCallback_type) (const DtPortalRepairResponseInteraction &interaction,
28  void *userData);
29 
32 
35 
40 
41 
44 
45  DtDEC_ATTRIBUTE( DtString, ReceivingId, receivingId );
46  DtDEC_ATTRIBUTE( DtString, RepairingId, repairingId );
47  DtDEC_ATTRIBUTE( DtRepairResult, RepairResult, repairResult );
48 
49 
51 
53 public:
54 
59 
60  //Doxygen comments inherited from parent class
61  virtual DtPortalMessageKind kind() const;
62 
63  //Doxygen comments inherited from parent class
64  virtual const char *interactionKindName() const;
65 
66  //Doxygen comments inherited from parent class
67  virtual unsigned int netSize() const;
68 
69  //Doxygen comments inherited from parent class
70  virtual void writeSelfToBuffer( void *buffer ) const;
71 
72  //Doxygen comments inherited from parent class
73  virtual void readSelfFromBuffer( const void *buffer );
74 
83  static void addCallback( DtPortalConnection *connection,
84  functionCallback_type callbackFunction,
85  void *userData );
86 
95  static void removeCallback( DtPortalConnection *connection,
96  functionCallback_type callbackFunction,
97  void *userData );
98 
106  static DtPortalMessage *create();
107 
108  //Doxygen comments inherited from parent class
109  virtual std::ostream &printDataToStream( std::ostream &str ) const;
110 
111 
112 private:
113 
116 
118  int operator==( const DtPortalRepairResponseInteraction & );
119 
121  int operator!=( const DtPortalRepairResponseInteraction & );
122 
123 }; //end class DtPortalRepairResponseInteraction
124 
126 {
128 }
129 
131 {
132  return "RepairResponse";
133 }
134 
136 {
137  return theKind;
138 }
139 
140 }
141 

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)