VR-Exchange 2.6 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
requestTransDiagnosticMessage.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/dllExport.h>
13 
14 #include <portal/pControlMessage.h>
15 
16 namespace MAKVrExchange
17 {
18 
22  : public DtPortalControlMessageTemplate<DtRequestTranslationDiagnosticMessageKind>
23  {
24  public:
25 
28 
30  typedef void (*RequestTranslationDebuggingMessageCallbackType) (
31  const DtRequestTranslationDiagnosticMessage& message, void* userData );
32 
33  // CTOR.
35 
36  // Copy CTOR.
39 
40  // Virtual DTOR.
42 
43  // Assignment operator.
46 
47  // Add the given callback to be called when message is sent.
48  static void addCallback( DtPortalConnection* connection,
49  RequestTranslationDebuggingMessageCallbackType callbackFunction, void* userData );
50 
51  // Remove the given callback so it's not called when message is sent.
52  static void removeCallback( DtPortalConnection* connection,
53  RequestTranslationDebuggingMessageCallbackType callbackFunction, void* userData );
54 
57 
59  DtDEC_ATTRIBUTE( DtString, ObjectName, objectName );
60 
62  DtDEC_ATTRIBUTE( bool, SendingEnabled, sendingEnabled );
63 
65 
67  public:
68 
69  static DtPortalMessage* create();
70 
71  virtual unsigned int netSize() const;
72  virtual void writeSelfToBuffer( void* buffer, int bufferSize ) const;
73  virtual void readSelfFromBuffer( const void* buffer, int bufferSize );
74 
75  virtual std::ostream& printDataToStream( std::ostream& stream ) const;
76 
77 
78  };
79 
80 
82  {
84  }
85 
86 }

Document ID: Generated on Wed Jan 30 18:15:18 EST 2019 from SVN revision 195534
Copyright © 2005-2019 VT MÄK. All Rights Reserved (www.mak.com)