IoT::Devices

class DeviceTreeImpl

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 virtual

~DeviceTreeImpl();

Destroys the DeviceTreeImpl.

Member Functions

deviceById virtual

DeviceNode deviceById(
    const std::string & id
) const;

deviceByPath virtual

DeviceNode deviceByPath(
    const std::string & path
) const;

findDeviceById virtual

Poco::Optional < DeviceNode > findDeviceById(
    const std::string & id
) const;

findDeviceByPath virtual

Poco::Optional < DeviceNode > findDeviceByPath(
    const std::string & path
) const;

findDevice protected

Poco::Optional < DeviceNode > findDevice(
    const DeviceNode & node,
    std::vector < std::string >::const_iterator begin,
    std::vector < std::string >::const_iterator end
) const;

rootDevice protected

Poco::Optional < DeviceNode > rootDevice() const;

Securely control IoT edge devices from anywhere   Connect a Device