WebLVC 1.8 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
pVrfTextReport.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/dllExport.h>
13 #include <portal/pInteraction.h>
14 
15 namespace MAKVrExchange
16 {
17 
18  class DtPortalConnection;
19 
23  {
24  public:
25 
27  typedef void (*functionCallback_type) (
28  const DtPortalVrfTextReportInteraction &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 
47  DtDEC_ATTRIBUTE( DtString, OriginatingEntity, originatingEntity );
48  DtDEC_ATTRIBUTE( DtString, ReceivingEntity, receivingEntity );
49  DtDEC_ATTRIBUTE( DtString, Message, message );
51 
53  public:
54 
56 
57  static DtPortalMessage* create();
58 
59  virtual unsigned int netSize() const;
60  virtual void writeSelfToBuffer( void* buffer, int bufferSize ) const;
61  virtual void readSelfFromBuffer( const void* buffer, int bufferSize );
62 
63  virtual std::ostream& printDataToStream( std::ostream& stream ) const;
64 
65  private:
66 
69 
71  bool operator == ( const DtPortalVrfTextReportInteraction& ) const;
72 
74  bool operator != ( const DtPortalVrfTextReportInteraction& ) const;
75 
76  };
77 
78 
80  {
82  }
83 
84 }
static DtPortalMessage * create()
Definition: pVrfTextReport.h:79
#define DT_DLL_LIBPORTAL
Definition: include/portal/dllExport.h:20
static const DtPortalMessageKind theKind
NOTE: DtDEC_ATTRIBUTE resets the access specifier to protected.
Definition: pVrfTextReport.h:55
#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:66
Contains the DtPortalInteraction class declaration.
DtPortalInteractions are a special type of DtPortalMessages which are used to transmit simulation dat...
Definition: pInteraction.h:21
Vrf Text Report Interaction class.
Definition: pVrfTextReport.h:22
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

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)