VR-Exchange 2.9 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
pLoggerConnectInteraction.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 
13 #include <vlutil/vlNetTypes.h>
14 #include <vlutil/vlString.h>
15 #include <matrix/vlVector.h>
16 
17 namespace MAKVrExchange
18 {
19 
20  class DtPortalConnection;
21 
28  {
29  public:
30 
32  typedef void (*functionCallback_type) (
33  const DtPortalLoggerConnectInteraction& interaction, void* userData );
34 
37 
40 
42  static void addCallback( DtPortalConnection* connection,
43  functionCallback_type callbackFunction, void* userData );
44 
46  static void removeCallback( DtPortalConnection* connection,
47  functionCallback_type callbackFunction, void* userData );
48 
51 
53  DtDEC_ATTRIBUTE( DtString, LoggerName, loggerName );
54 
56 
58  public:
59 
61 
62  static DtPortalMessage* create();
63 
64  virtual unsigned int netSize() const;
65  virtual void writeSelfToBuffer( void* buffer, int bufferSize ) const;
66  virtual void readSelfFromBuffer( const void* buffer, int bufferSize );
67 
68  virtual std::ostream& printDataToStream( std::ostream& str ) const;
69 
70  };
71 
72 
74  {
76  }
77 
78 }
#define DT_DLL_LIBPORTAL
Definition: include/portal/dllExport.h:20
Contains the DtPortalLoggerControlInteraction class declaration.
#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
static DtPortalMessage * create()
Definition: pLoggerConnectInteraction.h:73
The base class for all messages passed through the portal.
Definition: pMessage.h:66
static const DtPortalMessageKind theKind
NOTE: DtDEC_ATTRIBUTE resets the access specifier to protected.
Definition: pLoggerConnectInteraction.h:60
Represents a logger Connect event.
Definition: pLoggerConnectInteraction.h:26
Connects a broker to the Portal Data Exchange.
Definition: pConnection.h:49
Represents a logger control event.
Definition: pLoggerControlInteraction.h:26
DtPortalMessageKind
A List of message kinds distributed with the Portal.
Definition: pMessageKinds.h:23

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)