12 #include <initializer_list>
18 #include <Exception.hpp>
130 std::string endpointId;
131 std::vector<DeviceModel*> dm_list;
132 std::vector<VirtualDevice*> vd_list;
133 std::vector<StorageObject*> eo_list;
bool isActivated()
Returns whether the device has been activated.
virtual ~DirectlyConnectedDevice()
Destructor.
DeviceModel & getDeviceModel(const std::string &deviceModelUrl)
Get the DeviceModel for the device model urn.
Definition: DirectlyConnectedDevice.hpp:30
VirtualDevice for a device-client adds methods to handle write-only and executable actions...
const std::string & getEndpointId() const
Return the endpoint identifier of this directly-connected device.
Common exception.
Definition: Exception.hpp:34
void activate(const std::initializer_list< std::string > &deviceModelUrls)
Activate the device.
VirtualDevice & createVirtualDevice(const std::string &endpointId, DeviceModel &model)
Create a iotcs::AbstractVirtualDevice instance with the given device model for the given device ident...
Detailed information on a device model.
Definition: DeviceModel.hpp:19
Definition: VirtualDevice.hpp:38
Thrown on problems with authorization.
Definition: Exception.hpp:25
DirectlyConnectedDevice(const std::string &filePath, const std::string &password)
Constructs a new DirectlyConnectedDevice instance that will load the device configuration from the gi...
iotdcl::StorageObject provides information about content in the cloud storage.
StorageObject & createStorageObject(const std::string &name, const std::string &contentType)
Create a new iotdcl::StorageObject with the given object name and mime–type.
Definition: StorageObject.hpp:158