VR-Exchange 2.1 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 
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 DtVrxRecordSet& set );
61  virtual const DtVrxRecordSet& recordSet( int index,
62  bool* valid = NULL ) const;
63 
65  virtual const DtVrxRecordSetList &recordSetList() const;
66 
67 
68 
70  public:
71 
76 
77  //Doxygen comments inherited from parent class
78  virtual DtPortalMessageKind kind() const;
79 
80  //Doxygen comments inherited from parent class
81  virtual const char *interactionKindName() const;
82 
83  //Doxygen comments inherited from parent class
84  virtual unsigned int netSize() const;
85 
86  //Doxygen comments inherited from parent class
87  virtual void writeSelfToBuffer( void *buffer ) const;
88 
89  //Doxygen comments inherited from parent class
90  virtual void readSelfFromBuffer( const void *buffer );
91 
100  static void addCallback( DtPortalConnection *connection,
101  functionCallback_type callbackFunction,
102  void *userData );
103 
112  static void removeCallback( DtPortalConnection *connection,
113  functionCallback_type callbackFunction,
114  void *userData );
115 
123  static DtPortalMessage *create();
124 
125  //Doxygen comments inherited from parent class
126  virtual std::ostream &printDataToStream( std::ostream &str ) const;
127 
128 
129  protected:
130 
132 
133  private:
134 
137 
139  int operator==( const DtPortalTransferControlInteraction & );
140 
142  int operator!=( const DtPortalTransferControlInteraction & );
143 
144  }; //end class DtPortalTransferControlInteraction
145 
147  {
149  }
150 
152  {
153  return "TransferControl";
154  }
155 
157  {
158  return theKind;
159  }
160 
161 }
162 

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)