VR-Exchange 2.1 API Documentation
pLoggerPlayActionInteraction.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 
28  {
29  public:
30 
32  typedef void (*functionCallback_type) (const DtPortalLoggerPlayActionInteraction &interaction,
33  void *userData);
34 
35  typedef void (*DtPortalLoggerPlayActionInteractionCb)
36  (const DtPortalLoggerPlayActionInteraction &inter, void *usr);
37 
38  public:
39 
42 
45 
46  public:
47 
48  virtual DtPortalMessageKind kind() const;
49  virtual const char * interactionKindName() const { return "LoggerControl"; }
50 
51  virtual unsigned int netSize() const;
52  virtual void writeSelfToBuffer(void *buffer) const ;
53  virtual void readSelfFromBuffer(const void *buffer);
54  virtual std::ostream &printDataToStream(std::ostream &str) const;
55 
56  DtDEC_ATTRIBUTE(DtU32, Action, action);
57 
58  public:
59 
68  static void addCallback( DtPortalConnection *connection,
69  functionCallback_type callbackFunction,
70  void *userData );
71 
80  static void removeCallback( DtPortalConnection *connection,
81  functionCallback_type callbackFunction,
82  void *userData );
83 
84  public:
85 
86  static DtPortalMessage *create();
87 
89 
90  };
91 
92 }

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)