VR-Exchange 2.1 API Documentation
pAcknowledgeInter.h
Go to the documentation of this file.
1 /******************************************************************************
2  ** Copyright (c) 1992-2010 VT MAK
3 ******************************************************************************/
4 
5 #ifndef pAcknowledgeInter_H_
6 #define pAcknowledgeInter_H_
7 
11 
12 
13 #include <portal/pBaseInteraction.h>
14 
15 namespace MAKVrExchange
16 {
17 
18  class DtPortalConnection;
19 
23 
25  {
26  public:
28  typedef void (*functionCallback_type) (const DtPortalAcknowledgeInteraction &interaction,
29  void *userData);
30 
33 
36 
37 
42 
44 
45  DtDEC_ATTRIBUTE( DtString, OriginatingEntity, originatingEntity );
46  DtDEC_ATTRIBUTE( DtString, ReceivingEntity, receivingEntity );
47  DtDEC_ATTRIBUTE( DtU32, RequestIdentifier, requestIdentifier );
48  DtDEC_ATTRIBUTE( DtU32, AcknowledgeFlag, acknowledgeFlag );
49  DtDEC_ATTRIBUTE( DtU32, ResponseFlag, responseFlag );
51 
53  public:
54 
59 
60  //Doxygen comments inherited from parent class
61  virtual DtPortalMessageKind kind() const;
62 
63  // Returns the name of the interaction: "Acknowledge"
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, void *userData );
85 
94  static void removeCallback( DtPortalConnection *connection,
95  functionCallback_type callbackFunction, void *userData );
96 
104  static DtPortalMessage *create();
105 
106  //Doxygen comments inherited from parent class
107  virtual std::ostream &printDataToStream( std::ostream &str ) const;
108 
109  private:
110 
113 
115  int operator==( const DtPortalAcknowledgeInteraction & );
116 
118  int operator!=( const DtPortalAcknowledgeInteraction & );
119 
120  }; //end class DtPortalAcknowledgeInteraction
121 
123  {
124  return new DtPortalAcknowledgeInteraction();
125  }
126 
128  {
129  return "Acknowledge";
130  }
131 
133  {
134  return theKind;
135  }
136 
137 }
138 
139 #endif //end #ifndef pAcknowledgeInter_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)