WebLVC 1.7d API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
pServiceRequestInteraction.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 
14 #include <vlpi/disEnums.h>
15 
16 namespace MAKVrExchange
17 {
18 
19  class DtPortalConnection;
20 
26  {
27  public:
28 
30  typedef void (*functionCallback_type)(
31  const DtPortalServiceRequestInteraction& interaction, void* userData );
32 
35 
38 
41 
44 
46  static void addCallback( DtPortalConnection* connection,
47  functionCallback_type callbackFunction, void* userData );
48 
50  static void removeCallback( DtPortalConnection* connection,
51  functionCallback_type callbackFunction, void* userData );
52 
55 
56  DtDEC_ATTRIBUTE( DtU32, ServiceType, serviceType );
57 
59 
61  public:
62 
64 
65  static DtPortalMessage* create();
66 
67  virtual unsigned int netSize() const;
68  virtual void writeSelfToBuffer( void* buffer, int bufferSize ) const;
69  virtual void readSelfFromBuffer( const void* buffer, int bufferSize );
70 
71  virtual std::ostream& printDataToStream( std::ostream& str ) const;
72 
73  };
74 
75 
77  {
79  }
80 
81 }
82 
#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:65
static DtPortalMessage * create()
Definition: pServiceRequestInteraction.h:76
Portal Supply Interaction class.
Definition: pSupplyInteraction.h:22
Portal Service Request Interaction class.
Definition: pServiceRequestInteraction.h:25
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
static const DtPortalMessageKind theKind
NOTE: DtDEC_ATTRIBUTE resets the access specifier to protected.
Definition: pServiceRequestInteraction.h:63
Contains the DtPortalSupplyInteraction class declaration.

Document ID: Generated on Wed Jun 21 15:05:44 EDT 2023 from SVN revision 256253
Copyright © 2005-2023 MAK Technologies. All Rights Reserved (www.mak.com)