VR-Exchange 2.10 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
transDiagnosticMessage.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 
23  : public DtPortalControlMessageTemplate<DtTranslationDiagnosticMessageKind>
24  {
25  public:
26 
29 
31  typedef void (*TranslationDebuggingMessageCallbackType) (
32  const DtTranslationDiagnosticMessage& message, void* userData );
33 
34  // CTOR.
36 
37  // Copy CTOR.
39 
40  // Virtual DTOR.
42 
43  // Assignment operator.
44  DtTranslationDiagnosticMessage& operator = (
46 
47  // Add the given callback to be called when message is sent.
48  static void addCallback( DtPortalConnection* connection,
49  TranslationDebuggingMessageCallbackType 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  TranslationDebuggingMessageCallbackType callbackFunction, void* userData );
54 
57 
59  DtDEC_ATTRIBUTE( DtString, ObjectName, objectName );
60 
62  DtDEC_ATTRIBUTE( DtString, IncomingState, incomingState );
63 
65  DtDEC_ATTRIBUTE( DtString, OutgoingState, outgoingState );
66 
68 
70  public:
71 
72  static DtPortalMessage* create();
73 
74  virtual unsigned int netSize() const;
75  virtual void writeSelfToBuffer( void* buffer, int bufferSize ) const;
76  virtual void readSelfFromBuffer( const void* buffer, int bufferSize );
77 
78  virtual std::ostream& printDataToStream( std::ostream& stream ) const;
79 
80  };
81 
82 
84  {
85  return new DtTranslationDiagnosticMessage();
86  }
87 
88 }
Contains the DtPortalControlMessage class declarations.
#define DT_DLL_LIBPORTAL
Definition: include/portal/dllExport.h:20
Used by brokers to report translation diagnostic reports.
Definition: transDiagnosticMessage.h:22
#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
static DtPortalMessage * create()
NOTE: DtDEC_ATTRIBUTE resets the access specifier to protected.
Definition: transDiagnosticMessage.h:83
DtPortalControlMessageTemplate< DtTranslationDiagnosticMessageKind > BaseClassType
Definition: transDiagnosticMessage.h:28
PortalControlMessageTemplate is used to create new DtPortalControlMessage types.
Definition: pControlMessage.h:71
Connects a broker to the Portal Data Exchange.
Definition: pConnection.h:49

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)