roo_transceivers
API Documentation for roo_transceivers
Loading...
Searching...
No Matches
roo_transceivers::SensorLocator Class Reference

Identifies sensor within a transceiver device. More...

#include <id.h>

Public Member Functions

 SensorLocator ()
 
 SensorLocator (roo::string_view schema, roo::string_view device_id, roo::string_view sensor_id)
 
 SensorLocator (const DeviceLocator &device_loc, roo::string_view sensor_id)
 
const DeviceLocatordevice_locator () const
 Returns the device locator.
 
const DeviceSchemaschema () const
 Returns the device schema.
 
const DeviceIddevice_id () const
 Returns the device id.
 
const SensorIdsensor_id () const
 Returns the sensor id.
 
bool isDefined () const
 Returns true if the locator is defined.
 
void write_cstr (char *buf) const
 Writes a null-terminated string representation into buf.
 
std::string toString () const
 Returns a string representation.
 

Detailed Description

Identifies sensor within a transceiver device.

Consists of device locator and sensor id.

Definition at line 57 of file id.h.

Constructor & Destructor Documentation

◆ SensorLocator() [1/3]

roo_transceivers::SensorLocator::SensorLocator ( )

Definition at line 26 of file id.cpp.

◆ SensorLocator() [2/3]

roo_transceivers::SensorLocator::SensorLocator ( roo::string_view  schema,
roo::string_view  device_id,
roo::string_view  sensor_id 
)

Definition at line 28 of file id.cpp.

◆ SensorLocator() [3/3]

roo_transceivers::SensorLocator::SensorLocator ( const DeviceLocator device_loc,
roo::string_view  sensor_id 
)

Definition at line 33 of file id.cpp.

Member Function Documentation

◆ device_id()

const DeviceId & roo_transceivers::SensorLocator::device_id ( ) const
inline

Returns the device id.

Definition at line 73 of file id.h.

References roo_transceivers::DeviceLocator::device_id().

Referenced by roo_transceivers::ArduinoPreferencesBindingStore::setSensorBinding().

◆ device_locator()

const DeviceLocator & roo_transceivers::SensorLocator::device_locator ( ) const
inline

◆ isDefined()

bool roo_transceivers::SensorLocator::isDefined ( ) const
inline

◆ schema()

const DeviceSchema & roo_transceivers::SensorLocator::schema ( ) const
inline

Returns the device schema.

Definition at line 70 of file id.h.

References roo_transceivers::DeviceLocator::schema().

Referenced by roo_transceivers::ArduinoPreferencesBindingStore::setSensorBinding().

◆ sensor_id()

const SensorId & roo_transceivers::SensorLocator::sensor_id ( ) const
inline

◆ toString()

std::string roo_transceivers::SensorLocator::toString ( ) const

Returns a string representation.

Definition at line 46 of file id.cpp.

References write_cstr().

◆ write_cstr()

void roo_transceivers::SensorLocator::write_cstr ( char *  buf) const

Writes a null-terminated string representation into buf.

Definition at line 37 of file id.cpp.

References roo_transceivers::DeviceLocator::write_cstr().

Referenced by toString().


The documentation for this class was generated from the following files: