VR-Exchange 2.1 API Documentation
pSetDataInter.h
Go to the documentation of this file.
1 /******************************************************************************
2  ** Copyright (c) 1992-2010 VT MAK
3  ******************************************************************************/
4 
5 
6 #ifndef pSetDataInter_H_
7 #define pSetDataInter_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 DtPortalSetDataInteraction &interaction, void *userData);
30 
33 
35  virtual ~DtPortalSetDataInteraction();
36 
42 
45 
46  DtDEC_ATTRIBUTE( DtString, OriginatingEntity, originatingEntity );
47  DtDEC_ATTRIBUTE( DtString, ReceivingEntity, receivingEntity );
48  DtDEC_ATTRIBUTE( DtU32, RequestIdentifier, requestIdentifier );
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& stream ) const;
111 
112  private:
113 
116 
118  bool operator==( const DtPortalSetDataInteraction& ) const;
119 
121  bool operator!=( const DtPortalSetDataInteraction& ) const;
122 
123  }; //end class DtPortalSetDataInteraction
124 
126  {
127  return new DtPortalSetDataInteraction();
128  }
129 
131  {
132  return "Set Data";
133  }
134 
136  {
137  return theKind;
138  }
139 
140 }
141 
142 #endif

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)