VR-Exchange 2.6 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, ScenarioFilename, scenarioFilename);
57  DtDEC_ATTRIBUTE(DtString, Address, address);
58 
60 
62  public:
63 
65 
66  static DtPortalMessage* create();
67 
68  virtual unsigned int netSize() const;
69  virtual void writeSelfToBuffer( void* buffer, int bufferSize ) const;
70  virtual void readSelfFromBuffer( const void* buffer, int bufferSize );
71 
72  virtual std::ostream& printDataToStream( std::ostream& stream ) const;
73 
74  private:
75 
78 
80  bool operator == ( const DtPortalVrfScenarioInteraction& ) const;
81 
83  bool operator != ( const DtPortalVrfScenarioInteraction& ) const;
84 
85  };
86 
87 
89  {
90  return new DtPortalVrfScenarioInteraction();
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)