VR-Exchange 2.1 API Documentation
pLoggerEndOfActionInteraction.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 
24  //
28  {
29  public:
31  typedef void (*functionCallback_type) (const DtPortalLoggerEndOfActionInteraction &interaction,
32  void *userData);
33 
34  typedef void (*DtPortalLoggerEndOfActionInteractionCb)
35  (const DtPortalLoggerEndOfActionInteraction &inter, void *usr);
36 
37  public:
38 
41 
44 
45  public:
46  virtual DtPortalMessageKind kind() const;
47  virtual const char * interactionKindName() const { return "LoggerControl"; }
48 
49  virtual unsigned int netSize() const;
50  virtual void writeSelfToBuffer(void *buffer) const ;
51  virtual void readSelfFromBuffer(const void *buffer);
52  virtual std::ostream &printDataToStream(std::ostream &str) const;
53 
54  DtDEC_ATTRIBUTE(DtU32, Action, action);
55 
56  public:
65  static void addCallback( DtPortalConnection *connection,
66  functionCallback_type callbackFunction,
67  void *userData );
68 
77  static void removeCallback( DtPortalConnection *connection,
78  functionCallback_type callbackFunction,
79  void *userData );
80 
81  public:
82 
83  static DtPortalMessage *create();
84 
86 
87  };
88 
89 }

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)