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
Creates a IDatapointFactory.
Destructor
~IDatapointFactory
virtual ~IDatapointFactory();
Destroys the IDatapointFactory.
Member Functions
createBoolean
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 std::string createComposite(
const IoT::Datapoints::BasicDatapointParams & params
) = 0;
Creates a Composite and returns the service ID of the newly created Composite.
createCounter
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 std::string createEnum(
const IoT::Datapoints::EnumDatapointParams & params
) = 0;
Creates an EnumDatapoint and returns the service ID of the newly created Datapoint.
createFlags
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 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 std::string createScalar(
const IoT::Datapoints::ScalarDatapointParams & params
) = 0;
Creates a ScalarDatapoint and returns the service ID of the newly created Datapoint.
createString
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 std::string createVector(
const IoT::Datapoints::VectorDatapointParams & params
) = 0;
Creates a VectorDatapoint and returns the service ID of the newly created Datapoint.
isA
bool isA(
const std::type_info & otherType
) const;
Returns true if the class is a subclass of the class given by otherType.
See also: Poco::OSP::Service::isA()
remoting__typeId
static const Poco::RemotingNG::Identifiable::TypeId & remoting__typeId();
Returns the TypeId of the class.
remove
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
const std::type_info & type() const;
Returns the type information for the object's class.
See also: Poco::OSP::Service::type()