VR-Exchange 2.4 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
pCommentInter.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2015 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <portal/pInteraction.h>
13 
14 namespace MAKVrExchange
15 {
16 
17  class DtPortalConnection;
18 
22  : public DtPortalInteraction
23  {
24  public:
25 
27  typedef void (*functionCallback_type) (
28  const DtPortalCommentInteraction& interaction, void* userData );
29 
32 
35 
37  virtual ~DtPortalCommentInteraction();
38 
40  DtPortalCommentInteraction& operator = ( const DtPortalCommentInteraction& other );
41 
43  static void addCallback( DtPortalConnection* connection,
44  functionCallback_type callbackFunction, void* userData );
45 
47  static void removeCallback( DtPortalConnection* connection,
48  functionCallback_type callbackFunction, void* userData );
49 
52 
53  DtDEC_ATTRIBUTE( DtString, SenderId, senderId );
54  DtDEC_ATTRIBUTE( DtString, ReceiverId, receiverId );
59  DtDEC_ATTRIBUTE( DtString, Comment, comment );
60  DtDEC_ATTRIBUTE( DtFixedLengthDataArray, FixedDatums, fixedDatums );
61  DtDEC_ATTRIBUTE( DtAttributeValuePairList, VariableDatumSet, variableDatumSet );
62 
64 
66  public:
67 
69 
70  static DtPortalMessage* create();
71 
72  virtual unsigned int netSize() const;
73  virtual void writeSelfToBuffer( void* buffer ) const;
74  virtual void readSelfFromBuffer( const void* buffer );
75 
76  virtual std::ostream& printDataToStream( std::ostream& str ) const;
77 
78  };
79 
80 
82  {
83  return new DtPortalCommentInteraction();
84  }
85 
86 }

Document ID: Generated on Thu Jul 23 10:25:22 EDT 2015 from SVN revision 155065
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)