14 #include <tbb/mutex.h>
32 virtual bool loadHazardAreaInformationFile(
const DtFilename&
filename,
bool clear);
43 virtual void addHazardAreaType(
const DtEntityType&);
47 virtual void removeHazardAreaType(
const DtEntityType&);
50 virtual std::vector<DtSimObjectReference> hazardAreas(
const DtEntityType&)
const;
52 virtual const std::vector<DtEntityType>& hazardAreaTypes()
const;
55 virtual const std::map<unsigned long long, DtSimObjectReference>& hazardAreas()
const;
61 static void requestHazardAreaInformationCallback(
DtSimMessage* msg,
void* usr);
62 virtual void processHazardAreaInformation(
DtSimMessage* msg);
68 virtual void processHazardAreaDeleted(
const DtSimObject*);
const DtSimulationServices * mySimulationServices
Definition: hazardAreaManager.h:71
DtRwHazardAreaInformation myHazardAreaInformation
Definition: hazardAreaManager.h:72
The DtHazardAreaManager will keep track of all hazard area objects and their state. Hazard areas are predefined as part of this class. Call the add/remove methods to add or remove areas to watch.
Definition: hazardAreaManager.h:22
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
File: simMsg.h.
Definition: simMessage.h:35
std::map< unsigned long long, DtSimObjectReference > myHazardAreas
Definition: hazardAreaManager.h:74
Central access point of all non-object-specific the services and managers that are available for use ...
Definition: simulationServices.h:96
Represents a single simulation object in the exercise. Object may be VRF simulation, or non-VRF simulated, and may be simulated by the local sim engine, or by a remote sim engine. Only public (external) state of the object is available. All data is read-only. All access to data of the object is thread safe within the simulation frame.
Definition: simObject.h:80
tbb::spin_mutex myRemovalMutex
Definition: hazardAreaManager.h:77
boost::signals2::scoped_connection mySimObjectAddedConnection
Definition: hazardAreaManager.h:76
std::vector< DtEntityType > myHazardAreaTypes
Definition: hazardAreaManager.h:73