22 #include <tbb/mutex.h> 60 static tbb::mutex myMutex;
61 tbb::mutex::scoped_lock lock(myMutex);
82 errorMessage.
Append(
"Cannot register sensor: already registered: [");
112 errorMessage.
Append(
"Cannot unregister sensor: not registered: [");
127 assert(pSensor != NULL);
133 errorMessage.
Append(
"Sensor not registered: [");
153 throw Exception(
"Invalid sensor: Nameless");
void Append(const String &rString)
const Identifier & GetIdentifier() const
SensorManagerMap m_SensorMap
void RegisterSensor(Sensor *pSensor)
void UnregisterSensor(Sensor *pSensor)
void Log(LogLevel level, const karto::String &rMessage)
virtual ~SensorRegistry()
List< Sensor * > m_Sensors
const String & ToString() const
std::map< Identifier, Sensor * > SensorManagerMap
static void Validate(Sensor *pSensor)
Sensor * GetSensorByName(const Identifier &rName)
static SensorRegistry * GetInstance()
const String & GetScope() const
SensorRegistryPrivate * m_pSensorRegistryPrivate