VR-Exchange 2.6 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pLoggerTotalStateInteraction.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2016 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
13 #include <vlutil/vlNetTypes.h>
14 #include <vlutil/vlString.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) (
33  const DtPortalLoggerTotalStateInteraction& interaction, void* userData );
34 
37 
40 
42  static void addCallback( DtPortalConnection* connection,
43  functionCallback_type callbackFunction, void* userData );
44 
46  static void removeCallback( DtPortalConnection* connection,
47  functionCallback_type callbackFunction, void* userData );
48 
51 
52  DtDEC_ATTRIBUTE( DtTime, Time, time );
53  DtDEC_ATTRIBUTE( DtTime, IdealTime, idealTime );
54  DtDEC_ATTRIBUTE( DtReal, Scale, scale );
55  DtDEC_ATTRIBUTE( DtTime, FileLength, fileLength );
56  DtDEC_ATTRIBUTE( DtTime, Heartbeat, heartbeat );
57  DtDEC_ATTRIBUTE( DtTime, Timeout, timeout );
58  DtDEC_ATTRIBUTE( bool, DataScaling, dataScaling );
59  DtDEC_ATTRIBUTE( DtU32, FilePos, filePos );
60  DtDEC_ATTRIBUTE( DtU32, Mode, mode );
61  DtDEC_ATTRIBUTE( DtU32, PlayAction, playAction );
62  DtDEC_ATTRIBUTE( DtU32, RecordAction, recordAction );
63  DtDEC_ATTRIBUTE( DtU32, EndOfAction, endOfAction );
64  DtDEC_ATTRIBUTE( bool, TimeConstrained, timeConstrained );
65  DtDEC_ATTRIBUTE( bool, TimeRegulating, timeRegulating );
66  DtDEC_ATTRIBUTE( bool, UsingOwnFedAmb, usingOwnFedAmb );
67  DtDEC_ATTRIBUTE( DtString, LoggerFile, loggerFile );
68  DtDEC_ATTRIBUTE( DtString, AnnotationsFile, annotationsFile );
69 
71 
73  public:
74 
76 
77  static DtPortalMessage* create();
78 
79  virtual unsigned int netSize() const;
80  virtual void writeSelfToBuffer( void* buffer, int bufferSize ) const;
81  virtual void readSelfFromBuffer( const void* buffer, int bufferSize );
82 
83  virtual std::ostream& printDataToStream( std::ostream& str ) const;
84 
85  };
86 
87 
89  {
91  }
92 
93 }

Document ID: Generated on Wed Jan 30 18:15:18 EST 2019 from SVN revision 195534
Copyright © 2005-2019 VT MÄK. All Rights Reserved (www.mak.com)