WebLVC 1.8 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
pVrfStopSpotReport.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2022 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 DtPortalVrfStopSpotReportInteraction& 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(DtString, ContactName, contactName);
48  DtDEC_ATTRIBUTE(DtString, SpotterName, spotterName);
49  DtDEC_ATTRIBUTE(DtFloat64, DateAndTimeOfReport, dateAndTimeOfReport);
50  DtDEC_ATTRIBUTE(DtFloat64, SimulationTime, simulationTime);
51 
53 
55  public:
56 
58 
59  static DtPortalMessage* create();
60 
61  virtual unsigned int netSize() const;
62  virtual void writeSelfToBuffer(void* buffer, int bufferSize) const;
63  virtual void readSelfFromBuffer(const void* buffer, int bufferSize);
64 
65  virtual std::ostream& printDataToStream(std::ostream& str) const;
66 
67  private:
68 
71 
73  int operator == (const DtPortalVrfStopSpotReportInteraction&);
74 
76  int operator != (const DtPortalVrfStopSpotReportInteraction&);
77 
78  };
79 
80 
82  {
84  }
85 
86 }
#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: pVrfStopSpotReport.h:81
The base class for all messages passed through the portal.
Definition: pMessage.h:66
Contains the DtPortalInteraction class declaration.
DtPortalInteractions are a special type of DtPortalMessages which are used to transmit simulation dat...
Definition: pInteraction.h:21
static const DtPortalMessageKind theKind
NOTE: DtDEC_ATTRIBUTE resets the access specifier to protected.
Definition: pVrfStopSpotReport.h:57
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
Portal Start Interaction class.
Definition: pVrfStopSpotReport.h:21

Document ID: Generated on Wed Mar 12 15:05:17 EDT 2025 from SVN revision 274272
Copyright © 2005-2025 MAK Technologies. All Rights Reserved (www.mak.com)