VR-Exchange 2.7 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pRepairCompleteInteraction.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>
14 
15 namespace MAKVrExchange
16 {
17 
18  class DtPortalConnection;
19 
23  : public DtPortalInteraction
24  {
25  public:
26 
28  typedef void (*functionCallback_type) (
29  const DtPortalRepairCompleteInteraction& interaction, void* userData );
30 
33 
36 
39 
42 
44  static void addCallback( DtPortalConnection* connection,
45  functionCallback_type callbackFunction, void* userData );
46 
48  static void removeCallback( DtPortalConnection* connection,
49  functionCallback_type callbackFunction, void* userData );
50 
53 
54  DtDEC_ATTRIBUTE( DtString, ReceivingId, receivingId );
55  DtDEC_ATTRIBUTE( DtString, RepairingId, repairingId );
56  DtDEC_ATTRIBUTE( DtU32, RepairType, repairType );
57 
59 
61  public:
62 
64 
65  static DtPortalMessage* create();
66 
67  virtual unsigned int netSize() const;
68  virtual void writeSelfToBuffer( void* buffer, int bufferSize ) const;
69  virtual void readSelfFromBuffer( const void* buffer, int bufferSize );
70 
71  virtual std::ostream& printDataToStream( std::ostream& str ) const;
72 
73  };
74 
75 
77  {
79  }
80 
81 }
#define DT_DLL_LIBPORTAL
Definition: include/portal/dllExport.h:20
#define DtDEC_ATTRIBUTE(T, N, n)
A Macro to define an attribute; as well as make an accessor and mutator for that attribute.
Definition: addAttribute.h:49
The base class for all messages passed through the portal.
Definition: pMessage.h:65
Contains the DtPortalInteraction class declaration.
static DtPortalMessage * create()
Definition: pRepairCompleteInteraction.h:76
DtPortalInteractions are a special type of DtPortalMessages which are used to transmit simulation dat...
Definition: pInteraction.h:21
static const DtPortalMessageKind theKind
NOTE: DtDEC_ATTRIBUTE resets the access specifier to protected.
Definition: pRepairCompleteInteraction.h:63
Portal Repair Complete Interaction class.
Definition: pRepairCompleteInteraction.h:22
Connects a broker to the Portal Data Exchange.
Definition: pConnection.h:49
DtPortalMessageKind
A List of message kinds distributed with the Portal.
Definition: pMessageKinds.h:23

Document ID: Generated on Mon Apr 19 15:55:22 EDT 2021 from SVN revision 227909
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)