VR-Exchange 2.10 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
requestTransDiagnosticMessage.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2016 MAK Technologies, Inc.
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 }
Contains the DtPortalControlMessage class declarations.
#define DT_DLL_LIBPORTAL
Definition: include/portal/dllExport.h:20
Used to request that brokers send translation diagnostic reports.
Definition: requestTransDiagnosticMessage.h:21
#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:67
PortalControlMessageTemplate is used to create new DtPortalControlMessage types.
Definition: pControlMessage.h:71
static DtPortalMessage * create()
NOTE: DtDEC_ATTRIBUTE resets the access specifier to protected.
Definition: requestTransDiagnosticMessage.h:81
Connects a broker to the Portal Data Exchange.
Definition: pConnection.h:49
DtPortalControlMessageTemplate< DtRequestTranslationDiagnosticMessageKind > BaseClassType
Definition: requestTransDiagnosticMessage.h:27

Document ID: Generated on Mon May 25 18:45:12 EDT 2026 from SVN revision 289111
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)