VR-Exchange 2.5 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pVrfScenario.h
Go to the documentation of this file.
1 
2 /****************************************************************************
3  * Copyright (c) 2016 VT MAK
4  * All rights reserved.
5  ****************************************************************************/
6 
10 
11 #pragma once
12 
13 #include <portal/dllExport.h>
14 #include <portal/pInteraction.h>
15 
16 namespace MAKVrExchange
17 {
18 
19  class DtPortalConnection;
20 
24  {
25  public:
26 
27  static const int DtNewScenarioType = 0;
28  static const int DtLoadScenarioType = 1;
29  static const int DtSaveScenarioType = 2;
30 
31  public:
32 
34  typedef void (*functionCallback_type) (
35  const DtPortalVrfScenarioInteraction &interaction, void *userData);
36 
39 
42 
44  static void addCallback( DtPortalConnection* connection,
45  functionCallback_type callbackFunction, void* userData );
46 
48  static void removeCallback( DtPortalConnection* connection,
49  functionCallback_type callbackFunction, void* userData );
50 
53 
54 
55  DtDEC_ATTRIBUTE( DtString, ScenarioCommand, scenarioCommand );
56  DtDEC_ATTRIBUTE( DtString, ScenarioName, scenarioName );
57 
59 
61  public:
62 
64 
65  static DtPortalMessage* create();
66 
67  virtual unsigned int netSize() const;
68  virtual void writeSelfToBuffer( void* buffer, int bufferSize ) const;
69  virtual void readSelfFromBuffer( const void* buffer, int bufferSize );
70 
71  virtual std::ostream& printDataToStream( std::ostream& stream ) const;
72 
73  private:
74 
77 
79  bool operator == ( const DtPortalVrfScenarioInteraction& ) const;
80 
82  bool operator != ( const DtPortalVrfScenarioInteraction& ) const;
83 
84  };
85 
86 
88  {
89  return new DtPortalVrfScenarioInteraction();
90  }
91 
92 }

Document ID: Generated on Wed Dec 21 15:05:11 EST 2016 from SVN revision 171891
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)