VR-Exchange 2.1 API Documentation
pCommentInter.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 
13 
14 namespace MAKVrExchange
15 {
16 
17  class DtPortalConnection;
18 
23  {
24  public:
25 
27  typedef void (*functionCallback_type) (
28  const DtPortalCommentInteraction &interaction, void *userData);
29 
32 
34  virtual ~DtPortalCommentInteraction();
35 
41 
44 
45  DtDEC_ATTRIBUTE( DtString, SenderId, senderId );
46  DtDEC_ATTRIBUTE( DtString, ReceiverId, receiverId );
51  DtDEC_ATTRIBUTE( DtString, Comment, comment );
52  DtDEC_ATTRIBUTE( DtFixedLengthDataArray, FixedDatums, fixedDatums );
53  DtDEC_ATTRIBUTE( DtAttributeValuePairList, VariableDatumSet, variableDatumSet );
54 
56 
58  public:
59 
64 
65  //Doxygen comments inherited from parent class
66  virtual DtPortalMessageKind kind() const;
67 
68  //Doxygen comments inherited from parent class
69  virtual const char *interactionKindName() const;
70 
71  //Doxygen comments inherited from parent class
72  virtual unsigned int netSize() const;
73 
74  //Doxygen comments inherited from parent class
75  virtual void writeSelfToBuffer( void *buffer ) const;
76 
77  //Doxygen comments inherited from parent class
78  virtual void readSelfFromBuffer( const void *buffer );
79 
88  static void addCallback( DtPortalConnection *connection,
89  functionCallback_type callbackFunction,
90  void *userData );
91 
100  static void removeCallback( DtPortalConnection *connection,
101  functionCallback_type callbackFunction,
102  void *userData );
103 
111  static DtPortalMessage *create();
112 
113  //Doxygen comments inherited from parent class
114  virtual std::ostream &printDataToStream( std::ostream &str ) const;
115 
116  private:
117 
120 
122  int operator==( const DtPortalCommentInteraction & );
123 
125  int operator!=( const DtPortalCommentInteraction & );
126 
127  }; //end class DtPortalCommentInteraction
128 
130  {
131  return new DtPortalCommentInteraction();
132  }
133 
135  {
136  return "Comment";
137  }
138 
140  {
141  return theKind;
142  }
143 
144 }

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)