VR-Exchange 2.6 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pVrfCurrentResourceReq.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2016 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 
23  : public DtPortalInteraction
24  {
25  public:
26 
28  typedef void (*functionCallback_type) (
29  const DtPortalVrfCurrentResourceRequestInteraction& interaction, void* userData );
30 
33 
36 
38  static void addCallback( DtPortalConnection* connection,
39  functionCallback_type callbackFunction, void* userData );
40 
42  static void removeCallback( DtPortalConnection* connection,
43  functionCallback_type callbackFunction, void* userData );
44 
47 
48  DtDEC_ATTRIBUTE( DtString, OriginatingEntity, originatingEntity );
49  DtDEC_ATTRIBUTE( DtString, ReceivingEntity, receivingEntity );
50  DtDEC_ATTRIBUTE( DtString, ObjectName, objectName );
51  DtDEC_ATTRIBUTE( DtU32, RequestId, requestId );
52  DtDEC_ATTRIBUTE( std::vector<DtString>, Resources, resources );
53 
55 
57  public:
58 
60 
61  static DtPortalMessage* create();
62 
63  virtual unsigned int netSize() const;
64  virtual void writeSelfToBuffer( void* buffer, int bufferSize ) const;
65  virtual void readSelfFromBuffer( const void* buffer, int bufferSize );
66 
67  virtual std::ostream& printDataToStream( std::ostream& stream ) const;
68 
69  private:
70 
74 
76  bool operator == ( const DtPortalVrfCurrentResourceRequestInteraction& ) const;
77 
79  bool operator != ( const DtPortalVrfCurrentResourceRequestInteraction& ) const;
80 
81  };
82 
83 
85  {
87  }
88 
89 }

Document ID: Generated on Wed Jan 30 18:15:18 EST 2019 from SVN revision 195534
Copyright © 2005-2019 VT MÄK. All Rights Reserved (www.mak.com)