File Information
Library: IoT/Devices
Package: Devices
Header: IoT/Devices/DeviceTreeImpl.h
Description
Default implementation of the DeviceTree service.
Local device node names will be obtained from the service property named "io.macchina.nodeName". If that device property is not defined, the device's name will be obtained directly from the device object's "name" property.
Inheritance
Direct Base Classes: DeviceTree
All Base Classes: DeviceTree
Member Summary
Member Functions: deviceById, deviceByPath, findDevice, findDeviceById, findDeviceByPath, rootDevice
Inherited Functions: deviceById, deviceByPath, findDeviceById, findDeviceByPath
Constructors
DeviceTreeImpl
explicit DeviceTreeImpl(
    const Poco::OSP::ServiceRegistry & registry
);
Creates the DeviceTreeImpl with the given ServiceRegistry.
Destructor
~DeviceTreeImpl 
 
~DeviceTreeImpl();
Destroys the DeviceTreeImpl.
Member Functions
deviceById 
 
DeviceNode deviceById(
    const std::string & id
) const;
See also: IoT::Devices::DeviceTree::deviceById()
deviceByPath 
 
DeviceNode deviceByPath(
    const std::string & path
) const;
See also: IoT::Devices::DeviceTree::deviceByPath()
findDeviceById 
 
Poco::Optional < DeviceNode > findDeviceById(
    const std::string & id
) const;
findDeviceByPath 
 
Poco::Optional < DeviceNode > findDeviceByPath(
    const std::string & path
) const;
findDevice 
 
Poco::Optional < DeviceNode > findDevice(
    const DeviceNode & node,
    std::vector < std::string >::const_iterator begin,
    std::vector < std::string >::const_iterator end
) const;
rootDevice 
 
Poco::Optional < DeviceNode > rootDevice() const;