VR-Exchange 2.2 API Documentation
pLoggerStartInteraction.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 #include <vlutil/vlString.h>
14 #include <vlutil/vlNetTypes.h>
15 #include <matrix/vlVector.h>
16 
17 namespace MAKVrExchange
18 {
19 
20  class DtPortalConnection;
21 
27  {
28  public:
29 
31  typedef void (*functionCallback_type) (const DtPortalLoggerStartInteraction &interaction,
32  void *userData);
33 
34  typedef void (*DtPortalLoggerStartInteractionCb)
35  (const DtPortalLoggerStartInteraction &inter, void *usr);
36 
37  public:
38 
41 
44 
45  public:
46 
47  virtual DtPortalMessageKind kind() const;
48  virtual const char * interactionKindName() const { return "LoggerControl"; }
49 
50  virtual unsigned int netSize() const;
51  virtual void writeSelfToBuffer(void *buffer) const ;
52  virtual void readSelfFromBuffer(const void *buffer);
53  virtual std::ostream &printDataToStream(std::ostream &str) const;
54 
63  static void addCallback( DtPortalConnection *connection,
64  functionCallback_type callbackFunction,
65  void *userData );
66 
75  static void removeCallback( DtPortalConnection *connection,
76  functionCallback_type callbackFunction,
77  void *userData );
78 
79  public:
80 
81  static DtPortalMessage *create();
82 
84 
85  };
86 
87 }

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)