VR-Exchange 2.2 API Documentation
pTransferControlInteraction.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2012 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <portal/pBaseInteraction.h> //class DtPortalBaseInteraction
14 
15 namespace MAKVrExchange
16 {
17 
18  class DtPortalConnection;
19 
22  class DT_DLL_LIBPORTAL DtPortalTransferControlInteraction
24  {
25  public:
26 
28  typedef void (*functionCallback_type) (
29  const DtPortalTransferControlInteraction& interaction, void* usr );
30 
31  public:
32 
35 
38 
42 
43  DtDEC_ATTRIBUTE( DtString, OriginatingEntity, originatingEntity );
44  DtDEC_ATTRIBUTE( DtString, ReceivingEntity, receivingEntity );
45  DtDEC_ATTRIBUTE( DtU32, RequestIdentifier, requestIdentifier );
46  DtDEC_ATTRIBUTE( DtU32, TransferType, transferType );
47  DtDEC_ATTRIBUTE( DtString, TransferredEntityID, transferredEntityID );
48 
50 
51  public:
52 
56  virtual DtU32 numRecordSets() const;
57 
60  virtual bool setRecordSet( int index, const DtRecordSet& set );
61  virtual const DtRecordSet& recordSet( int index,
62  bool* valid = NULL ) const;
63 
65  virtual const DtVrxRecordSetList& recordSetList() const;
66 
67  public:
68 
73 
74  //Doxygen comments inherited from parent class
75  virtual DtPortalMessageKind kind() const;
76 
77  //Doxygen comments inherited from parent class
78  virtual const char *interactionKindName() const;
79 
80  //Doxygen comments inherited from parent class
81  virtual unsigned int netSize() const;
82 
83  //Doxygen comments inherited from parent class
84  virtual void writeSelfToBuffer( void *buffer ) const;
85 
86  //Doxygen comments inherited from parent class
87  virtual void readSelfFromBuffer( const void *buffer );
88 
97  static void addCallback( DtPortalConnection *connection,
98  functionCallback_type callbackFunction,
99  void *userData );
100 
109  static void removeCallback( DtPortalConnection *connection,
110  functionCallback_type callbackFunction,
111  void *userData );
112 
120  static DtPortalMessage *create();
121 
122  //Doxygen comments inherited from parent class
123  virtual std::ostream &printDataToStream( std::ostream &str ) const;
124 
125 
126  protected:
127 
129 
130  private:
131 
134 
136  int operator==( const DtPortalTransferControlInteraction & );
137 
139  int operator!=( const DtPortalTransferControlInteraction & );
140 
141  }; //end class DtPortalTransferControlInteraction
142 
144  {
146  }
147 
149  {
150  return "TransferControl";
151  }
152 
154  {
155  return theKind;
156  }
157 
158 }
159 

Document ID: Generated on Mon Apr 15 17:15:50 EDT 2013 from SVN revision 126154
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)