VR-Exchange 2.4 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
brokerErrorMessage.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/pControlMessage.h>
13 #include <vlutil/vlString.h>
14 
15 namespace MAKVrExchange
16 {
17 
23  {
24  public:
25 
26  typedef void (*DtBrokerErrorMessageCb) (
27  const DtBrokerErrorMessage& msg, void* usr );
28 
29  public:
30 
33 
35  virtual ~DtBrokerErrorMessage();
36 
38  static void addCallback( DtPortalConnection* pConn,
39  DtBrokerErrorMessageCb cb, void* usr );
40 
42  static void removeCallback( DtPortalConnection* pConn,
43  DtBrokerErrorMessageCb cb, void* usr );
44 
47 
49  DtDEC_ATTRIBUTE( DtString, ErrorMessage, errorMessage );
50 
52 
54  public:
55 
57 
58  static DtPortalMessage* create();
59 
60  virtual unsigned int netSize() const;
61  virtual void writeSelfToBuffer( void* buffer ) const;
62  virtual void readSelfFromBuffer( const void* buffer );
63 
64  virtual std::ostream& printDataToStream( std::ostream& str ) const;
65 
66  };
67 
68 
70  {
71  return new DtBrokerErrorMessage();
72  }
73 
74 }

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)