VR-Exchange 2.2 API Documentation
pStopInter.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2012 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <portal/pBaseInteraction.h> //class DtPortalBaseInteraction
13 
14 namespace MAKVrExchange
15 {
16 
17  class DtPortalConnection;
18 
22 
23  class DT_DLL_LIBPORTAL DtPortalStopInteraction : public DtPortalBaseInteraction
24  {
25  public:
27  typedef void (*functionCallback_type) (const DtPortalStopInteraction &interaction,
28  void *userData);
29 
32 
34  virtual ~DtPortalStopInteraction();
35 
40 
42 
43  DtDEC_ATTRIBUTE( DtString, OriginatingEntity, originatingEntity );
44  DtDEC_ATTRIBUTE( DtString, ReceivingEntity, receivingEntity );
45  DtDEC_ATTRIBUTE( DtU32, RequestIdentifier, requestIdentifier );
46  DtDEC_ATTRIBUTE( DtTime, RealWorldTime, realWorldTime );
47  DtDEC_ATTRIBUTE( DtU32, Reason, reason );
48 
50  DtDEC_ATTRIBUTE( bool, ReflectValues, reflectValues );
51 
53  DtDEC_ATTRIBUTE( bool, RunInternalSimulationClock, runInternalSimulationClock );
54 
56  DtDEC_ATTRIBUTE( bool, UpdateAttributes, updateAttributes );
58 
60  public:
61 
66 
67  //Doxygen comments inherited from parent class
68  virtual DtPortalMessageKind kind() const;
69 
70  //Doxygen comments inherited from parent class
71  virtual const char *interactionKindName() const;
72 
73  //Doxygen comments inherited from parent class
74  virtual unsigned int netSize() const;
75 
76  //Doxygen comments inherited from parent class
77  virtual void writeSelfToBuffer( void *buffer ) const;
78 
79  //Doxygen comments inherited from parent class
80  virtual void readSelfFromBuffer( const void *buffer );
81 
90  static void addCallback( DtPortalConnection *connection,
91  functionCallback_type callbackFunction,
92  void *userData );
93 
102  static void removeCallback( DtPortalConnection *connection,
103  functionCallback_type callbackFunction,
104  void *userData );
105 
113  static DtPortalMessage *create();
114 
115  //Doxygen comments inherited from parent class
116  virtual std::ostream &printDataToStream( std::ostream &str ) const;
117 
118  private:
119 
121  DtPortalStopInteraction &operator=( const DtPortalStopInteraction & );
122 
124  int operator==( const DtPortalStopInteraction & );
125 
127  int operator!=( const DtPortalStopInteraction & );
128 
129  }; //end class DtPortalStopInteraction
130 
132  {
133  return new DtPortalStopInteraction();
134  }
135 
137  {
138  return "Stop";
139  }
140 
142  {
143  return theKind;
144  }
145 
147 
148  /* Doxygen comments for DtDEC_ATTRIBUTE() have been placed here to make the
149  above code more readable */
150 
153 
156 
159 
162 
165 
168 
171 
174 
181 
188 
195 
202 
209 
216 
223 
230 
235 
240 
245 
250 
255 
260 
265 
270 
272 
273 }

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)