VR-Exchange 2.9 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) 2016 MAK Technologies, Inc.
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, int bufferSize ) const;
62  virtual void readSelfFromBuffer( const void* buffer, int bufferSize );
63 
64  virtual std::ostream& printDataToStream( std::ostream& str ) const;
65 
66  };
67 
68 
70  {
71  return new DtBrokerErrorMessage();
72  }
73 
74 }
Contains the DtPortalControlMessage class declarations.
#define DT_DLL_LIBPORTAL
Definition: include/portal/dllExport.h:20
static const DtPortalMessageKind theKind
NOTE: DtDEC_ATTRIBUTE resets the access specifier to protected.
Definition: brokerErrorMessage.h:56
#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:66
Message sent from brokers to the portal to print out an error message in the gui. ...
Definition: brokerErrorMessage.h:22
static DtPortalMessage * create()
Definition: brokerErrorMessage.h:69
Connects a broker to the Portal Data Exchange.
Definition: pConnection.h:49
DtPortalMessageKind
A List of message kinds distributed with the Portal.
Definition: pMessageKinds.h:23
Control messages signal state changes in VR-Exchange&#39;s operation.
Definition: pControlMessage.h:22

Document ID: Generated on Tue Jun 25 16:45:35 EDT 2024 from SVN revision 267383
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)