VR-Exchange 2.1 API Documentation
pStartInter.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2006 M�K Technologies, Inc.** All rights reserved.
3 ******************************************************************************/
4 /*******************************************************************************
5 * $RCSfile: pStartInter.h,v $ $Revision: 1.20 $ $State:
6 $******************************************************************************/
7 #ifndef pStartInter_H_
8 #define pStartInter_H_
9 
13 
14 
15 #include <portal/pBaseInteraction.h> //class DtPortalBaseInteraction
16 
17 namespace MAKVrExchange {
18 
19 class DtPortalConnection;
20 
24 
26 {
27 public:
29  typedef void (*functionCallback_type) (const DtPortalStartInteraction &interaction,
30  void *userData);
31 
34 
36  virtual ~DtPortalStartInteraction();
37 
42 
43 
46 
47  DtDEC_ATTRIBUTE( DtString, OriginatingEntity, originatingEntity );
48  DtDEC_ATTRIBUTE( DtString, ReceivingEntity, receivingEntity );
49  DtDEC_ATTRIBUTE( DtU32, RequestIdentifier, requestIdentifier );
50  DtDEC_ATTRIBUTE( DtTime, RealWorldTime, realWorldTime );
51  DtDEC_ATTRIBUTE( DtTime, SimulationTime, simulationTime );
52  DtDEC_ATTRIBUTE( DtTimeStampType, RealWorldTimeType, realWorldTimeType);
53  DtDEC_ATTRIBUTE( DtTimeStampType, SimulationTimeType, simulationTimeType);
55 
57 public:
58 
63 
64  //Doxygen comments inherited from parent class
65  virtual DtPortalMessageKind kind() const;
66 
67  //Doxygen comments inherited from parent class
68  virtual const char *interactionKindName() const;
69 
70  //Doxygen comments inherited from parent class
71  virtual unsigned int netSize() const;
72 
73  //Doxygen comments inherited from parent class
74  virtual void writeSelfToBuffer( void *buffer ) const;
75 
76  //Doxygen comments inherited from parent class
77  virtual void readSelfFromBuffer( const void *buffer );
78 
87  static void addCallback( DtPortalConnection *connection,
88  functionCallback_type callbackFunction,
89  void *userData );
90 
99  static void removeCallback( DtPortalConnection *connection,
100  functionCallback_type callbackFunction,
101  void *userData );
102 
110  static DtPortalMessage *create();
111 
112  //Doxygen comments inherited from parent class
113  virtual std::ostream &printDataToStream( std::ostream &str ) const;
114 
115 private:
116 
119 
121  int operator==( const DtPortalStartInteraction & );
122 
124  int operator!=( const DtPortalStartInteraction & );
125 
126 }; //end class DtPortalStartInteraction
127 
129 {
130  return new DtPortalStartInteraction();
131 }
132 
134 {
135  return "Start";
136 }
137 
139 {
140  return theKind;
141 }
142 
143 }
144 
145 #endif //end #ifndef pStartInter_H_

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)