VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
organizationController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2002 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 #pragma once
12 
13 
15 #include "vrfobjcore/simRadio.h"
16 
17 class DtSimMessage;
18 class DtVrfObject;
19 
30 {
31 
32 private:
36 
37 public:
38 
42  DtVrfObject* owner,
43  DtSimManager* simManager,
44  DtComponentDescriptor* desc = 0,
45  DtReaderWriterRegistry* parentRegistry = 0);
46 
49 
51  const DtOrganizationController & operator=(const
53 
55  virtual ~DtOrganizationController();
56 
57  virtual bool init();
58 
61  virtual const char* type() const;
62 
65  virtual void tick();
66 
71  virtual bool generateEchelonId(int designator);
72 
74  virtual void processSetDesignator(DtSimMessage * msg);
75 
76  static void setDesignatorCallback(DtSimMessage * msg, void * usrData);
77 
81  static DtSimComponent * creator(const DtString& name,
82  DtVrfObject* owner,
83  DtSimManager* simManager,
84  DtComponentDescriptor* desc = 0,
85  DtReaderWriterRegistry* parentRegistry = 0);
86 
90  virtual bool tickWhileDestroyed() const;
91 
92 protected:
94  virtual void setRadio(DtSimRadio * radio);
95 
98 
99 };
100 
#define DT_DLL_vrfmodel
This file is used to determine how to build.
Definition: vrfmodelDefines.h:24
DtVrfObject is used to represent any type of simulated object (entities, aggregate, control objects) in a VR-Forces application.
Definition: vrfObject.h:215
const DtControllerComponent & operator=(const DtControllerComponent &orig)
assignment operator
class DtSimRadio:
Definition: simRadio.h:25
virtual void setRadio(DtSimRadio *radio)
virtual const char * type() const =0
This returns a string from compTypes.h, and identifies the type of component.
A readable, writable type whose name is the name of a component and that has a list of component name...
Definition: componentDescriptor.h:42
Definition: readerWriterRegistry.h:39
virtual bool init()
Calls setRadio()
DtOrganizationController is intended for any entity which will be a leaf node on the organization hie...
Definition: organizationController.h:29
int myRequestedDesignator
Used to store the requested designator if the echelon ID is not set immediatly.
Definition: organizationController.h:97
File: simMsg.h.
Definition: simMessage.h:35
virtual void tick()
This gives the thread of control to the component.
virtual bool tickWhileDestroyed() const
If the component returns true here, it will be ticked regardless of the destroyed state of the host e...
End User Description: DtControllerComponent is the base class for all controllers components...
Definition: controllerComponent.h:29
The DtSimComponent class is the base class for the entire simulation model component hierarchy...
Definition: simComponent.h:67
The simulation engine is controlled by a single,top-level class called the Simulation Manager...
Definition: simManager.h:102

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)