VR-Exchange 2.9 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
pVrfSpotReport.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/pInteraction.h>
13 
14 namespace MAKVrExchange
15 {
16 
17  class DtPortalConnection;
18 
22  : public DtPortalInteraction
23  {
24  public:
25 
27  typedef void (*functionCallback_type) (
28  const DtPortalVrfSpotReportInteraction& interaction, void* userData );
29 
32 
35 
37  static void addCallback( DtPortalConnection* connection,
38  functionCallback_type callbackFunction, void* userData );
39 
41  static void removeCallback( DtPortalConnection* connection,
42  functionCallback_type callbackFunction, void* userData );
43 
46 
47  DtDEC_ATTRIBUTE( DtSensorContactInfo, ContactInfo, contactInfo );
48  DtDEC_ATTRIBUTE( DtString, SpotterName, spotterName );
49  DtDEC_ATTRIBUTE( DtString, EngagementResult, engagementResult );
50  DtDEC_ATTRIBUTE( DtFloat64, DateAndTimeOfReport, dateAndTimeOfReport );
51  DtDEC_ATTRIBUTE( DtFloat64, SimulationTime, simulationTime );
52  DtDEC_ATTRIBUTE( bool, UseGroundTruth, useGroundTruth);
53  DtDEC_ATTRIBUTE( DtInt32, Reason, reason);
54  DtDEC_ATTRIBUTE( DtFloat64, ExpirationTime, expirationTime);
55 
57 
59  public:
60 
62 
63  static DtPortalMessage* create();
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  private:
72 
75 
77  int operator == ( const DtPortalVrfSpotReportInteraction& );
78 
80  int operator != ( const DtPortalVrfSpotReportInteraction& );
81 
82  };
83 
84 
86  {
88  }
89 
90 }
#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
static DtPortalMessage * create()
Definition: pVrfSpotReport.h:85
The base class for all messages passed through the portal.
Definition: pMessage.h:66
Contains the DtPortalInteraction class declaration.
Definition: sensorContactInfo.h:28
DtPortalInteractions are a special type of DtPortalMessages which are used to transmit simulation dat...
Definition: pInteraction.h:21
Portal Start Interaction class.
Definition: pVrfSpotReport.h:21
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
static const DtPortalMessageKind theKind
NOTE: DtDEC_ATTRIBUTE resets the access specifier to protected.
Definition: pVrfSpotReport.h:61

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)