Poco::RemotingNG

class Identifiable

Library: RemotingNG
Package: ORB
Header: Poco/RemotingNG/Identifiable.h

Description

An Identifiable object stores a TypeId, ObjectId and URI for an object.

The remoting__ prefix for the Identifiable member functions and variables is used to avoid name clashes with methods from subclasses.

Inheritance

Direct Base Classes: Poco::RefCountedObject

All Base Classes: Poco::RefCountedObject

Known Derived Classes: IoT::Devices::IORemoteObject, IoT::Devices::CameraRemoteObject, IoT::Devices::RotaryEncoderRemoteObject, IoT::Devices::SerialDeviceRemoteObject, IoT::Devices::CounterRemoteObject, IoT::Devices::LEDRemoteObject, IoT::Devices::BarcodeReaderRemoteObject, IoT::Devices::BooleanSensorRemoteObject, IoT::Devices::TriggerRemoteObject, IoT::Devices::AccelerometerRemoteObject, IoT::Devices::DeviceRemoteObject, IoT::Devices::MagnetometerRemoteObject, IoT::Devices::SensorRemoteObject, IoT::Devices::SwitchRemoteObject, IoT::Devices::GNSSSensorRemoteObject, IoT::Devices::GyroscopeRemoteObject, Proxy, RemoteObject, IoT::MQTT::MQTTClientRemoteObject, IoT::OPC::OPCClientRemoteObject, IoT::Modbus::ModbusMasterRemoteObject, IoT::BtLE::PeripheralRemoteObject, IoT::BtLE::PeripheralBrowserRemoteObject, IoT::CAN::CANEndpointRemoteObject, IoT::UDP::UDPEndpointRemoteObject, IoT::XBee::XBeeNodeRemoteObject, IoT::MobileConnection::MobileConnectionServiceRemoteObject, IoT::S7PLC::S7PLCClientRemoteObject, IoT::DeviceStatus::DeviceStatusServiceRemoteObject, IoT::NetworkEnvironment::NetworkEnvironmentServiceRemoteObject, IoT::WebEvent::WebEventNotifierRemoteObject

Member Summary

Member Functions: remoting__getURI, remoting__objectId, remoting__setURI, remoting__typeId

Inherited Functions: duplicate, referenceCount, release

Types Aliases

ObjectId

using ObjectId = std::string;

Ptr

using Ptr = Poco::AutoPtr < Identifiable >;

TypeId

using TypeId = std::string;

Constructors

Identifiable

Identifiable(
    const Identifiable::ObjectId & oid
);

Creates the Identifiable using the given ObjectId.

Destructor

~Identifiable virtual

virtual ~Identifiable();

Destroys the Identifiable.

Member Functions

remoting__getURI inline

const Poco::URI & remoting__getURI() const;

Returns the object's URI.

remoting__objectId inline

const Identifiable::ObjectId & remoting__objectId() const;

Returns the object's ObjectId.

remoting__setURI

void remoting__setURI(
    const Poco::URI & uri
);

Sets the URI for the object.

remoting__typeId virtual

virtual const Identifiable::TypeId & remoting__typeId() const = 0;

Returns the object's TypeId.

The TypeId is defined by a subclass and cannot be changed.

Securely control IoT edge devices from anywhere   Connect a Device