roo_transceivers
API Documentation for roo_transceivers
Loading...
Searching...
No Matches
id.h File Reference
#include <string>
#include "roo_collections/hash.h"
#include "roo_collections/small_string.h"
#include "roo_logging.h"
Include dependency graph for id.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  roo_transceivers::DeviceLocator
 Identifies a transceiver device by schema and device id. More...
 
class  roo_transceivers::SensorLocator
 Identifies sensor within a transceiver device. More...
 
class  roo_transceivers::ActuatorLocator
 Identifies actuator within a transceiver device. More...
 

Namespaces

namespace  roo_transceivers
 
namespace  std
 

Typedefs

using roo_transceivers::DeviceSchema = roo_collections::SmallString< 16 >
 Device schema identifier (short string).
 
using roo_transceivers::DeviceId = roo_collections::SmallString< 24 >
 Device identifier (short string).
 
using roo_transceivers::SensorId = roo_collections::SmallString< 24 >
 Sensor identifier (short string).
 
using roo_transceivers::ActuatorId = roo_collections::SmallString< 24 >
 Actuator identifier (short string).
 

Functions

bool roo_transceivers::operator== (const DeviceLocator &a, const DeviceLocator &b)
 
bool roo_transceivers::operator!= (const DeviceLocator &a, const DeviceLocator &b)
 
bool roo_transceivers::operator== (const SensorLocator &a, const SensorLocator &b)
 
bool roo_transceivers::operator!= (const SensorLocator &a, const SensorLocator &b)
 
bool roo_transceivers::operator== (const ActuatorLocator &a, const ActuatorLocator &b)
 
bool roo_transceivers::operator!= (const ActuatorLocator &a, const ActuatorLocator &b)
 
roo_logging::Stream & operator<< (roo_logging::Stream &s, const roo_transceivers::DeviceSchema &schema)
 
roo_logging::Stream & operator<< (roo_logging::Stream &s, const roo_transceivers::DeviceLocator &loc)
 Streams a device locator in a human-readable form.
 
roo_logging::Stream & operator<< (roo_logging::Stream &s, const roo_transceivers::SensorLocator &loc)
 Streams a sensor locator in a human-readable form.
 
roo_logging::Stream & operator<< (roo_logging::Stream &s, const roo_transceivers::ActuatorLocator &loc)
 Streams an actuator locator in a human-readable form.
 

Function Documentation

◆ operator<<() [1/4]

roo_logging::Stream & operator<< ( roo_logging::Stream &  s,
const roo_transceivers::ActuatorLocator loc 
)

Streams an actuator locator in a human-readable form.

Definition at line 103 of file id.cpp.

References roo_transceivers::ActuatorLocator::actuator_id(), and roo_transceivers::ActuatorLocator::device_locator().

◆ operator<<() [2/4]

roo_logging::Stream & operator<< ( roo_logging::Stream &  s,
const roo_transceivers::DeviceLocator loc 
)

Streams a device locator in a human-readable form.

Definition at line 88 of file id.cpp.

References roo_transceivers::DeviceLocator::device_id(), and roo_transceivers::DeviceLocator::schema().

◆ operator<<() [3/4]

roo_logging::Stream & operator<< ( roo_logging::Stream &  s,
const roo_transceivers::DeviceSchema schema 
)

Definition at line 82 of file id.cpp.

◆ operator<<() [4/4]

roo_logging::Stream & operator<< ( roo_logging::Stream &  s,
const roo_transceivers::SensorLocator loc 
)

Streams a sensor locator in a human-readable form.

Definition at line 94 of file id.cpp.

References roo_transceivers::SensorLocator::device_locator(), and roo_transceivers::SensorLocator::sensor_id().