IoT::Devices

class ICamera

File Information

Library: IoT/Devices
Package: Generated
Header: IoT/Devices/ICamera.h

Description

The base class for image sensors, also known as cameras.

Inheritance

Direct Base Classes: IDevice

All Base Classes: IDevice, Poco::OSP::Service, Poco::RefCountedObject

Known Derived Classes: CameraRemoteObject

Member Summary

Member Functions: capture, image, isA, ready, remoting__enableEvents, remoting__typeId, type

Inherited Functions: duplicate, getFeature, getPropertyBool, getPropertyDouble, getPropertyInt, getPropertyInt16, getPropertyInt64, getPropertyString, getPropertyTimestamp, hasFeature, hasProperty, isA, referenceCount, release, remoting__enableEvents, remoting__typeId, setFeature, setPropertyBool, setPropertyDouble, setPropertyInt, setPropertyInt16, setPropertyInt64, setPropertyString, setPropertyTimestamp, type

Types Aliases

Ptr

using Ptr = Poco::AutoPtr < ICamera >;

Constructors

ICamera

ICamera();

Creates a ICamera.

Destructor

~ICamera virtual

virtual ~ICamera();

Destroys the ICamera.

Member Functions

capture virtual

virtual void capture() = 0;

Capture an image.

image virtual

virtual Poco::SharedPtr < IoT::Devices::Image > image() const = 0;

Returns the most recently taken image, or a null pointer if no image is available.

isA virtual

bool isA(
    const std::type_info & otherType
) const;

Returns true if the class is a subclass of the class given by otherType.

ready virtual

virtual bool ready() const = 0;

Returns true if the camera is ready.

remoting__enableEvents virtual

virtual std::string remoting__enableEvents(
    Poco::RemotingNG::Listener::Ptr pListener,
    bool enable = bool (true)
) = 0;

Enable or disable delivery of remote events.

The given Listener instance must implement the Poco::RemotingNG::EventListener interface, otherwise this method will fail with a RemotingException.

This method is only used with Proxy objects; calling this method on a RemoteObject will do nothing.

remoting__typeId static

static const Poco::RemotingNG::Identifiable::TypeId & remoting__typeId();

Returns the TypeId of the class.

type virtual

const std::type_info & type() const;

Returns the type information for the object's class.

Variables

imageCaptured

Poco::BasicEvent < const Poco::SharedPtr < IoT::Devices::Image >> imageCaptured;

Securely control IoT edge devices from anywhere   Connect a Device