VR-Exchange 2.4 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) 2014 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 
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 ) const;
76  virtual void readSelfFromBuffer( const void* buffer );
77 
78  virtual std::ostream& printDataToStream( std::ostream& stream ) const;
79 
80  };
81 
82 
84  {
85  return new DtTranslationDiagnosticMessage();
86  }
87 
88 }

Document ID: Generated on Thu Jul 23 10:25:22 EDT 2015 from SVN revision 155065
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)