VR-Exchange 2.2 API Documentation
transDiagnosticMessage.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2013 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <namespace.h>
13 
14 #include <portal/pControlMessage.h>
15 
16 namespace MAKVrExchange
17 {
18 
22  class DT_DLL_LIBPORTAL DtTranslationDiagnosticMessage
23  : public DtPortalControlMessageTemplate<DtTranslationDiagnosticMessageKind>
24  {
25  public:
26 
29 
31  typedef void (*TranslationDebuggingMessageCallbackType) (
32  const DtTranslationDiagnosticMessage& message, void* userData );
33 
34  public:
35 
36  // Creator.
37  static DtPortalMessage* create();
38 
39  // CTOR.
41 
42  // Copy CTOR.
44 
45  // Virtual DTOR.
47 
48  // Assignment operator.
50 
51  // Computes the encoded size of the message.
52  virtual unsigned int netSize() const;
53 
54  // Writes the message to the given buffer.
55  virtual void writeSelfToBuffer( void* buffer ) const;
56 
57  // Reads the message from the given buffer.
58  virtual void readSelfFromBuffer( const void* buffer );
59 
60  // Prints the contents of the message to the given stream.
61  virtual std::ostream& printDataToStream( std::ostream& stream ) const;
62 
63  // Add the given callback to be called when message is sent.
64  static void addCallback( DtPortalConnection* connection,
65  TranslationDebuggingMessageCallbackType callbackFunction, void* userData );
66 
67  // Remove the given callback so it's not called when message is sent.
68  static void removeCallback( DtPortalConnection* connection,
69  TranslationDebuggingMessageCallbackType callbackFunction, void* userData );
70 
73 
75  DtDEC_ATTRIBUTE( DtString, ObjectName, objectName );
76 
78  DtDEC_ATTRIBUTE( DtString, IncomingState, incomingState );
79 
81  DtDEC_ATTRIBUTE( DtString, OutgoingState, outgoingState );
82 
84 
85  };
86 
87 }

Document ID: Generated on Mon Apr 15 17:15:50 EDT 2013 from SVN revision 126154
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)