IoT::Datapoints

class IDatapointFactory

File Information

Library: IoT/Datapoints
Package: Generated
Header: IoT/Datapoints/IDatapointFactory.h

Description

A factory for the dynamic creation of Datapoints.

Inheritance

Direct Base Classes: Poco::OSP::Service

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

Known Derived Classes: DatapointFactoryRemoteObject

Member Summary

Member Functions: createBoolean, createComposite, createCounter, createEnum, createFlags, createMovingAverage, createScalar, createString, createVector, isA, remoting__typeId, remove, type

Inherited Functions: duplicate, isA, referenceCount, release, type

Types Aliases

Ptr

using Ptr = Poco::AutoPtr < IDatapointFactory >;

Constructors

IDatapointFactory

IDatapointFactory();

Creates a IDatapointFactory.

Destructor

~IDatapointFactory virtual

virtual ~IDatapointFactory();

Destroys the IDatapointFactory.

Member Functions

createBoolean virtual

virtual std::string createBoolean(
    const IoT::Datapoints::BooleanDatapointParams & params
) = 0;

Creates a BooleanDatapoint and returns the service ID of the newly created Datapoint.

createComposite virtual

virtual std::string createComposite(
    const IoT::Datapoints::BasicDatapointParams & params
) = 0;

Creates a Composite and returns the service ID of the newly created Composite.

createCounter virtual

virtual std::string createCounter(
    const IoT::Datapoints::CounterDatapointParams & params
) = 0;

Creates a CounterDatapoint and returns the service ID of the newly created Datapoint.

createEnum virtual

virtual std::string createEnum(
    const IoT::Datapoints::EnumDatapointParams & params
) = 0;

Creates an EnumDatapoint and returns the service ID of the newly created Datapoint.

createFlags virtual

virtual std::string createFlags(
    const IoT::Datapoints::FlagsDatapointParams & params
) = 0;

Creates an FlagsDatapoint and returns the service ID of the newly created Datapoint.

createMovingAverage virtual

virtual std::string createMovingAverage(
    const IoT::Datapoints::MovingAverageDatapointParams & params
) = 0;

Creates a ScalarDatapoint that implements moving average computation and returns the service ID of the newly created Datapoint.

createScalar virtual

virtual std::string createScalar(
    const IoT::Datapoints::ScalarDatapointParams & params
) = 0;

Creates a ScalarDatapoint and returns the service ID of the newly created Datapoint.

createString virtual

virtual std::string createString(
    const IoT::Datapoints::StringDatapointParams & params
) = 0;

Creates a StringDatapoint and returns the service ID of the newly created Datapoint.

createVector virtual

virtual std::string createVector(
    const IoT::Datapoints::VectorDatapointParams & params
) = 0;

Creates a VectorDatapoint and returns the service ID of the newly created Datapoint.

isA virtual

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

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

remoting__typeId static

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

Returns the TypeId of the class.

remove virtual

virtual void remove(
    const std::string serviceID
) = 0;

Removes the Datapoint (or Composite) with the given ID.

The Datapoint or Composite must have been created previously by calling one of the createXXX() methods.

type virtual

const std::type_info & type() const;

Returns the type information for the object's class.

Securely control IoT edge devices from anywhere   Connect a Device