VR-Exchange 2.2 API Documentation
requestTransDiagnosticMessage.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  : public DtPortalControlMessageTemplate<DtRequestTranslationDiagnosticMessageKind>
23  {
24  public:
25 
28 
30  typedef void (*RequestTranslationDebuggingMessageCallbackType) (
31  const DtRequestTranslationDiagnosticMessage& message, void* userData );
32 
33  public:
34 
35  // Creator.
36  static DtPortalMessage* create();
37 
38  // CTOR.
40 
41  // Copy CTOR.
43 
44  // Virtual DTOR.
46 
47  // Assignment operator.
49 
50  // Computes the encoded size of the message.
51  virtual unsigned int netSize() const;
52 
53  // Writes the message to the given buffer.
54  virtual void writeSelfToBuffer( void* buffer ) const;
55 
56  // Reads the message from the given buffer.
57  virtual void readSelfFromBuffer( const void* buffer );
58 
59  // Prints the contents of the message to the given stream.
60  virtual std::ostream& printDataToStream( std::ostream& stream ) const;
61 
62  // Add the given callback to be called when message is sent.
63  static void addCallback( DtPortalConnection* connection,
64  RequestTranslationDebuggingMessageCallbackType callbackFunction, void* userData );
65 
66  // Remove the given callback so it's not called when message is sent.
67  static void removeCallback( DtPortalConnection* connection,
68  RequestTranslationDebuggingMessageCallbackType callbackFunction, void* userData );
69 
72 
74  DtDEC_ATTRIBUTE( DtString, ObjectName, objectName );
75 
77  DtDEC_ATTRIBUTE( bool, SendingEnabled, sendingEnabled );
78 
80 
81  };
82 
83 }

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)