VR-Exchange 2.7 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pLoggerControlInteraction.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2016 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <portal/pInteraction.h>
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 
27  : public DtPortalInteraction
28  {
29  public:
30 
32  typedef void (*functionCallback_type) (
33  const DtPortalLoggerControlInteraction& interaction, void* userData );
34 
37 
40 
43 
44  DtDEC_ATTRIBUTE( DtString, ReceiverId, receiverId );
45  DtDEC_ATTRIBUTE( DtString, SenderId, senderId );
46  DtDEC_ATTRIBUTE( DtU32, LoggerCommandType, loggerCommandType );
47 
49 
51  public:
54  static void addCallback(DtPortalConnection* connection,
55  functionCallback_type callbackFunction, void* usr);
56 
59  static void removeCallback(DtPortalConnection* connection,
60  functionCallback_type callbackFunction, void* usr);
61 
62 
64 
65  virtual unsigned int netSize() const;
66  virtual void writeSelfToBuffer( void* buffer, int bufferSize ) const;
67  virtual void readSelfFromBuffer( const void* buffer, int bufferSize );
68 
69  virtual std::ostream& printDataToStream( std::ostream& str ) const;
70 
71  };
72 
73 }
#define DT_DLL_LIBPORTAL
Definition: include/portal/dllExport.h:20
#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
Definition: pMessageKinds.h:91
Contains the DtPortalInteraction class declaration.
DtPortalInteractions are a special type of DtPortalMessages which are used to transmit simulation dat...
Definition: pInteraction.h:21
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
static const DtPortalMessageKind theKind
Definition: pLoggerControlInteraction.h:63

Document ID: Generated on Mon Apr 19 15:55:22 EDT 2021 from SVN revision 227909
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)