VR-Exchange 2.10 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
pVrfEntityResourceResponse.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 
24  : public DtPortalInteraction
25  {
26  public:
27 
30  typedef void (*functionCallback_type) (
31  const DtPortalVrfEntityResourceResponseInteraction& interaction, void* userData );
32 
35 
38 
40  static void addCallback( DtPortalConnection* connection,
41  functionCallback_type callbackFunction, void* userData );
42 
44  static void removeCallback( DtPortalConnection* connection,
45  functionCallback_type callbackFunction, void* userData );
46 
49 
50  DtDEC_ATTRIBUTE( DtString, ObjectName, objectName );
51  DtDEC_ATTRIBUTE( DtAttributeValuePairList, Resources, resources );
52 
54 
56  public:
57 
59  virtual void addResource( DtAttributeValuePairList& resource );
60 
62  virtual void getResource( int rsrcNum, DtAttributeValuePairList& resource) const;
63 
64  public:
65 
67 
68  static DtPortalMessage* create();
69 
70  virtual unsigned int netSize() const;
71  virtual void writeSelfToBuffer( void* buffer, int bufferSize ) const;
72  virtual void readSelfFromBuffer( const void* buffer, int bufferSize );
73 
74  virtual std::ostream& printDataToStream( std::ostream& stream ) const;
75 
76  private:
77 
81 
83  bool operator == ( const DtPortalVrfEntityResourceResponseInteraction& ) const;
84 
86  bool operator != ( const DtPortalVrfEntityResourceResponseInteraction& ) const;
87 
88  };
89 
90 
92  {
94  }
95 
96 }
#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
The base class for all messages passed through the portal.
Definition: pMessage.h:67
Contains the DtPortalInteraction class declaration.
static DtPortalMessage * create()
Definition: pVrfEntityResourceResponse.h:91
DtPortalInteractions are a special type of DtPortalMessages which are used to transmit simulation dat...
Definition: pInteraction.h:21
Vrf Entity Resource Response Interaction class.
Definition: pVrfEntityResourceResponse.h:23
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
static const DtPortalMessageKind theKind
Definition: pVrfEntityResourceResponse.h:66

Document ID: Generated on Mon May 25 18:45:12 EDT 2026 from SVN revision 289111
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)