VR-Exchange 2.8 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
pVrfBackEnd.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 
12 #include <portal/pObject.h>
13 
14 namespace MAKVrExchange
15 {
16 
25  {
26  public:
27 
30 
33 
35  virtual ~DtPortalVrfBackEndObject();
36 
38  DtPortalVrfBackEndObject& operator = ( const DtPortalVrfBackEndObject& original );
39 
42 
43  int operator == ( const DtPortalVrfBackEndObject& rightOperand ) const;
44  int operator != ( const DtPortalVrfBackEndObject& rightOperand ) const;
45 
47 
50 
51  DtDEC_ATTRIBUTE( DtFloat64, ExerciseStartTime, exerciseStartTime );
52  DtDEC_ATTRIBUTE( DtFloat64, SimTime, simTime );
53  DtDEC_ATTRIBUTE( DtFloat64, SimStartTime, simStartTime );
54  DtDEC_ATTRIBUTE( double, TimeMultiplier, timeMultiplier );
55  DtDEC_ATTRIBUTE( DtU32, ControlState, controlState );
56  DtDEC_ATTRIBUTE( DtU32, InetAddr, inetAddr );
57  DtDEC_ATTRIBUTE( DtU32, Port, port );
58  DtDEC_ATTRIBUTE( bool, IsCurrentParameterDb, isCurrentParameterDb );
59  DtDEC_ATTRIBUTE( bool, IsResourceMonitorEnabled, isResourceMonitorEnabled );
60  DtDEC_ATTRIBUTE( bool, IsLoaded, isLoaded );
61  DtDEC_ATTRIBUTE( bool, IsTimeManaged, isTimeManaged );
62  DtDEC_ATTRIBUTE( DtString, ScenarioName, scenarioName );
63  DtDEC_ATTRIBUTE( DtString, ScenarioFilename, scenarioFilename );
64  DtDEC_ATTRIBUTE( DtString, TerrainName, terrainName );
65  DtDEC_ATTRIBUTE( DtString, GuiTerrainName, guiTerrainName );
66  DtDEC_ATTRIBUTE( DtU32, SimEngineId, simEngineId );
67  DtDEC_ATTRIBUTE( bool, LoadedNewScenario, loadedNewScenario );
68 
70 
71  public:
72 
74 
75  static DtPortalMessage* create();
76 
77  virtual unsigned int netSize() const;
78  virtual void writeSelfToBuffer( void* buffer, int bufferSize ) const;
79  virtual void readSelfFromBuffer( const void* buffer, int bufferSize );
80 
81  virtual std::ostream& printDataToStream( std::ostream& stream ) const;
82 
83  };
84 
85 
87  {
88  return new DtPortalVrfBackEndObject();
89  }
90 
91 }
static const DtPortalMessageKind theKind
Definition: pVrfBackEnd.h:73
#define DT_DLL_LIBPORTAL
Definition: include/portal/dllExport.h:20
#define DtDEC_ATTRIBUTE(T, N, n)
A Macro to define an attribute; as well as make an accessor and mutator for that attribute.
Definition: addAttribute.h:49
DtPortalObject are messages which also serve as state repositories for simulated objects.
Definition: pObject.h:23
The base class for all messages passed through the portal.
Definition: pMessage.h:65
static DtPortalMessage * create()
Definition: pVrfBackEnd.h:86
Used to represent VRF Backends Note: In DIS and HLA, VRF Backends do not publish as objects but inste...
Definition: pVrfBackEnd.h:24
DtPortalMessageKind
A List of message kinds distributed with the Portal.
Definition: pMessageKinds.h:23
Contains the DtPortalObject class declaration.

Document ID: Generated on Tue Aug 16 16:15:26 EDT 2022 from SVN revision 245901
Copyright © 2005-2022 MAK Technologies. All Rights Reserved (www.mak.com)