VR-Exchange 2.4 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) 2014 VT MAK
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 
22 
27  : public DtPortalInteraction
28  {
29  public:
30 
33  typedef void (*functionCallback_type) (
34  const DtPortalVrfEntityResourceResponseInteraction& interaction, void* userData );
35 
38 
41 
43  static void addCallback( DtPortalConnection* connection,
44  functionCallback_type callbackFunction, void* userData );
45 
47  static void removeCallback( DtPortalConnection* connection,
48  functionCallback_type callbackFunction, void* userData );
49 
52 
53  DtDEC_ATTRIBUTE( DtString, ObjectName, objectName );
54  DtDEC_ATTRIBUTE( DtAttributeValuePairList, Resources, resources );
55 
57 
59  public:
60 
62  virtual void addResource( DtAttributeValuePairList& resource );
63 
65  virtual void getResource( int rsrcNum, DtAttributeValuePairList& resource) const;
66 
67  public:
68 
70 
71  static DtPortalMessage* create();
72 
73  virtual unsigned int netSize() const;
74  virtual void writeSelfToBuffer( void* buffer ) const;
75  virtual void readSelfFromBuffer( const void* buffer );
76 
77  virtual std::ostream& printDataToStream( std::ostream& stream ) const;
78 
79  private:
80 
84 
86  bool operator == ( const DtPortalVrfEntityResourceResponseInteraction& ) const;
87 
89  bool operator != ( const DtPortalVrfEntityResourceResponseInteraction& ) const;
90 
91  };
92 
93 
95  {
97  }
98 
99 }

Document ID: Generated on Thu Jul 23 10:25:22 EDT 2015 from SVN revision 155065
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)