VR-Exchange 2.8 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
pGenericInter.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 
31  typedef void (*DtPortalGenericInteractionCb) (
32  const DtPortalGenericInteraction& inter, void* usr );
33 
36 
38  virtual ~DtPortalGenericInteraction();
39 
41  static void addCallback( DtPortalConnection* conn,
42  DtPortalGenericInteractionCb cb, void* usr );
43 
45  static void removeCallback( DtPortalConnection* conn,
46  DtPortalGenericInteractionCb cb, void* usr );
47 
50 
52  DtDEC_ATTRIBUTE( DtAttributeValuePairList, GenericAttributeValuePairList,
53  genericAttributeValuePairList );
54 
56  DtDEC_ATTRIBUTE( DtString, ClassName, className );
57 
59 
60  public:
61 
63 
64  static DtPortalMessage* create();
65 
66  virtual unsigned int netSize() const;
67  virtual void writeSelfToBuffer( void* buffer, int bufferSize ) const;
68  virtual void readSelfFromBuffer( const void* buffer, int bufferSize );
69 
70  virtual std::ostream& printDataToStream( std::ostream& str ) const;
71 
72  };
73 
74 
76  {
77  return new DtPortalGenericInteraction();
78  }
79 
80 }
#define DT_DLL_LIBPORTAL
Definition: include/portal/dllExport.h:20
A Interaction class to handle unknown HLA attributes.
Definition: pGenericInter.h:26
#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:65
Contains the DtPortalInteraction class declaration.
static const DtPortalMessageKind theKind
Definition: pGenericInter.h:62
static DtPortalMessage * create()
Definition: pGenericInter.h:75
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
std::list< DtAttributeValuePair > DtAttributeValuePairList
A list of DtAttributeValuePairs.
Definition: variableLengthData.h:79
DtPortalMessageKind
A List of message kinds distributed with the Portal.
Definition: pMessageKinds.h:23

Document ID: Generated on Tue Aug 16 16:15:26 EDT 2022 from SVN revision 245901
Copyright © 2005-2022 MAK Technologies. All Rights Reserved (www.mak.com)