VR-Exchange 2.1 API Documentation
pServiceRequestInteraction.h
Go to the documentation of this file.
1 /******************************************************************************
2  ** Copyright (c) 1992-2010 VT MAK
3 ******************************************************************************/
4 
5 #pragma once
6 
10 
11 
12 #include <portal/pSupplyInteraction.h> //class DtPortalInteraction
14 #include <vlpi/disEnums.h>
15 
16 namespace MAKVrExchange {
17 
18 class DtPortalConnection;
19 
20 
26 
28 {
29 public:
31  typedef void (*functionCallback_type) (const DtPortalServiceRequestInteraction &interaction,
32  void *userData);
33 
36 
39 
42 
46 
48 
49 
50  DtDEC_ATTRIBUTE(DtU32, ServiceType, serviceType);
51 
52 
54 public:
55 
60 
61  //Doxygen comments inherited from parent class
62  virtual DtPortalMessageKind kind() const;
63 
64  //Doxygen comments inherited from parent class
65  virtual const char *interactionKindName() const;
66 
67 
68  //Doxygen comments inherited from parent class
69  virtual unsigned int netSize() const;
70 
71  //Doxygen comments inherited from parent class
72  virtual void writeSelfToBuffer( void *buffer ) const;
73 
74  //Doxygen comments inherited from parent class
75  virtual void readSelfFromBuffer( const void *buffer );
76 
77 
78  //Doxygen comments inherited from parent class
79  virtual std::ostream &printDataToStream( std::ostream &str ) const;
80 
81 
82 
91  static void addCallback( DtPortalConnection *connection,
92  functionCallback_type callbackFunction,
93  void *userData );
94 
103  static void removeCallback( DtPortalConnection *connection,
104  functionCallback_type callbackFunction,
105  void *userData );
106 
114  static DtPortalMessage *create();
115 
116 private:
117 
120 
122  int operator==( const DtPortalServiceRequestInteraction & );
123 
125  int operator!=( const DtPortalServiceRequestInteraction & );
126 
127 }; //end class DtPortalServiceRequestInteraction
128 
130 {
132 }
133 
135 {
136  return "ServiceRequest";
137 }
138 
140 {
141  return theKind;
142 }
143 
144 }
145 

Document ID: Generated on Tue Aug 7 22:07:13 EDT 2012 from SVN revision 117874
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)