VR-Exchange 2.1 API Documentation
pLoggerRecordActionInteraction.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 #include <vlutil/vlNetTypes.h>
15 #include <vlutil/vlString.h>
16 
17 #include <matrix/vlVector.h>
18 
19 namespace MAKVrExchange
20 {
21 
22  class DtPortalConnection;
23 
30  {
31  public:
32 
34  typedef void (*functionCallback_type) (
35  const DtPortalLoggerRecordActionInteraction& interaction, void* usr );
36 
37  typedef void (*DtPortalLoggerRecordActionInteractionCb) (
38  const DtPortalLoggerRecordActionInteraction& inter, void* usr );
39 
40  public:
41 
44 
47 
48  public:
49 
50  virtual DtPortalMessageKind kind() const;
51  virtual const char * interactionKindName() const { return "LoggerControl"; }
52 
53  virtual unsigned int netSize() const;
54  virtual void writeSelfToBuffer(void *buffer) const ;
55  virtual void readSelfFromBuffer(const void *buffer);
56  virtual std::ostream &printDataToStream(std::ostream &str) const;
57 
58  DtDEC_ATTRIBUTE( DtU32, Action, action );
59 
60  public:
61 
70  static void addCallback( DtPortalConnection *connection,
71  functionCallback_type callbackFunction, void* userData );
72 
81  static void removeCallback( DtPortalConnection* connection,
82  functionCallback_type callbackFunction, 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)