VR-Exchange 2.2 API Documentation
pActionResponseInter.h
Go to the documentation of this file.
1 /******************************************************************************
2  ** Copyright (c) 1992-2010 VT MAK
3  ******************************************************************************/
4 
5 
6 #ifndef pActionResponseInter_H_
7 #define pActionResponseInter_H_
8 
12 
13 /* VR-Exchange header files */
14 #include <portal/pBaseInteraction.h> //class DtPortalBaseInteraction
15 
16 namespace MAKVrExchange {
17 
18  class DtPortalConnection;
19 
24  {
25  public:
28  typedef void (*functionCallback_type) (
29  const DtPortalActionResponseInteraction &interaction, void *userData);
30 
33 
36 
42 
45 
46  DtDEC_ATTRIBUTE( DtString, OriginatingEntity, originatingEntity );
47  DtDEC_ATTRIBUTE( DtString, ReceivingEntity, receivingEntity );
48  DtDEC_ATTRIBUTE( DtU32, RequestIdentifier, requestIdentifier );
49  DtDEC_ATTRIBUTE( DtU32, RequestStatus, requestStatus );
50  DtDEC_ATTRIBUTE( DtFixedLengthDataArray, FixedDatums, fixedDatums );
51  DtDEC_ATTRIBUTE( DtAttributeValuePairList, VariableDatumSet, variableDatumSet );
53 
55  public:
56 
61 
62  //Doxygen comments inherited from parent class
63  virtual DtPortalMessageKind kind() const;
64 
65  //Doxygen comments inherited from parent class
66  virtual const char* interactionKindName() const;
67 
68  //Doxygen comments inherited from parent class
69  virtual unsigned int netSize() const;
70 
71  //Doxygen comments inherited from parent class
72  virtual void writeSelfToBuffer( void* buffer ) const;
73 
74  //Doxygen comments inherited from parent class
75  virtual void readSelfFromBuffer( const void* buffer );
76 
85  static void addCallback( DtPortalConnection* connection,
86  functionCallback_type callbackFunction,
87  void* userData );
88 
97  static void removeCallback( DtPortalConnection* connection,
98  functionCallback_type callbackFunction,
99  void* userData );
100 
108  static DtPortalMessage* create();
109 
110  //Doxygen comments inherited from parent class
111  virtual std::ostream &printDataToStream( std::ostream& stream ) const;
112 
113  private:
114 
117 
119  bool operator==( const DtPortalActionResponseInteraction& ) const;
120 
122  bool operator!=( const DtPortalActionResponseInteraction& ) const;
123 
124  }; //end class DtPortalActionResponseInteraction
125 
127  {
129  }
130 
132  {
133  return "Data";
134  }
135 
137  {
138  return theKind;
139  }
140 
141 }
142 
143 #endif //end #ifndef pActionResponseInter_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)