VR-Exchange 2.5 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pStopInter.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2016 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <portal/pInteraction.h>
13 
14 namespace MAKVrExchange
15 {
16 
17  class DtPortalConnection;
18 
22  : public DtPortalInteraction
23  {
24  public:
25 
27  typedef void (*functionCallback_type) (
28  const DtPortalStopInteraction& interaction, void* userData );
29 
32 
35 
37  virtual ~DtPortalStopInteraction();
38 
40  DtPortalStopInteraction& operator = ( const DtPortalStopInteraction& other );
41 
43  static void addCallback( DtPortalConnection* connection,
44  functionCallback_type callbackFunction, void* userData );
45 
47  static void removeCallback( DtPortalConnection* connection,
48  functionCallback_type callbackFunction, void* userData );
49 
52 
53  DtDEC_ATTRIBUTE( DtString, OriginatingEntity, originatingEntity );
54  DtDEC_ATTRIBUTE( DtString, ReceivingEntity, receivingEntity );
55  DtDEC_ATTRIBUTE( DtU32, RequestIdentifier, requestIdentifier );
56  DtDEC_ATTRIBUTE( DtTime, RealWorldTime, realWorldTime );
57  DtDEC_ATTRIBUTE( DtU32, Reason, reason );
58 
60  DtDEC_ATTRIBUTE( bool, ReflectValues, reflectValues );
61 
63  DtDEC_ATTRIBUTE( bool, RunInternalSimulationClock, runInternalSimulationClock );
64 
66  DtDEC_ATTRIBUTE( bool, UpdateAttributes, updateAttributes );
67 
69 
71  public:
72 
74 
75  static DtPortalMessage* create();
76 
77  virtual unsigned int netSize() const;
78  virtual void writeSelfToBuffer( void* buffer, int bufferSize ) const;
79  virtual void readSelfFromBuffer( const void* buffer, int bufferSize );
80 
81  virtual std::ostream& printDataToStream( std::ostream& str ) const;
82 
83  };
84 
85 
87  {
88  return new DtPortalStopInteraction();
89  }
90 
91 }

Document ID: Generated on Wed Dec 21 15:05:11 EST 2016 from SVN revision 171891
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)