VR-Exchange 2.1 API Documentation
brokerErrorMessage.h
Go to the documentation of this file.
1 /*********************************************************************
2  ** Copyright (c) 1992-2010 VT MAK
3  ** All rights reserved.
4  *********************************************************************/
5 
6 #ifndef brokerErrorMessage_H_
7 #define brokerErrorMessage_H_
8 
12 
13 
14 #include <portal/pControlMessage.h>
15 #include <vlutil/vlString.h>
16 
17 namespace MAKVrExchange {
18 
24 {
25 public:
26 
27  typedef void (*DtBrokerErrorMessageCb)
28  (const DtBrokerErrorMessage& msg, void *usr);
29 
30 public:
31 
34 
36  virtual ~DtBrokerErrorMessage();
37 
39  DtDEC_ATTRIBUTE(DtString, ErrorMessage, errorMessage);
40 
41 public:
42 
43  virtual DtPortalMessageKind kind() const;
44  virtual unsigned int netSize() const;
45  virtual void writeSelfToBuffer(void *buffer) const;
46  virtual void readSelfFromBuffer(const void *buffer);
47 
48 public:
49 
50  virtual std::ostream &printDataToStream(std::ostream &str) const;
51 
53  static void addCallback(
54  DtPortalConnection* pConn, DtBrokerErrorMessageCb cb, void *usr);
55 
58  static void removeCallback(
59  DtPortalConnection* pConn, DtBrokerErrorMessageCb cb, void *usr);
60 
61 public:
62 
64 
66  static DtPortalMessage *create();
67 
68 };
69 }
70 
71 #endif //end #ifndef brokerErrorMessage_H_

Document ID: Generated on Tue Aug 7 22:07:13 EDT 2012 from SVN revision 117874
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)