IoT::Datapoints

class DatapointFactoryImpl

File Information

Library: IoT/Datapoints
Package: Datapoints
Header: IoT/Datapoints/DatapointFactoryImpl.h

Description

The default implementation of DatapointFactory.

Inheritance

Direct Base Classes: DatapointFactory

All Base Classes: DatapointFactory

Member Summary

Member Functions: createBoolean, createComposite, createCounter, createEnum, createFlags, createId, createMovingAverage, createScalar, createService, createString, createVector, remove

Inherited Functions: createBoolean, createComposite, createCounter, createEnum, createFlags, createMovingAverage, createScalar, createString, createVector, remove

Enumerations

Anonymous protected

ID_BOOLEAN

ID_COUNTER

ID_ENUM

ID_FLAGS

ID_MOVING_AVERAGE

ID_SCALAR

ID_STRING

ID_VECTOR

ID_COMPOSITE

ID_MAX

Constructors

DatapointFactoryImpl

DatapointFactoryImpl(
    Poco::OSP::BundleContext::Ptr pBundleContext
);

Creates the DatapointFactoryImpl.

Destructor

~DatapointFactoryImpl virtual

~DatapointFactoryImpl();

Destroys the DatapointFactoryImpl.

Member Functions

createBoolean virtual

ServiceID createBoolean(
    const BooleanDatapointParams & params
);

createComposite virtual

ServiceID createComposite(
    const CompositeParams & params
);

createCounter virtual

ServiceID createCounter(
    const CounterDatapointParams & params
);

createEnum virtual

ServiceID createEnum(
    const EnumDatapointParams & params
);

createFlags virtual

ServiceID createFlags(
    const FlagsDatapointParams & params
);

createMovingAverage virtual

ServiceID createMovingAverage(
    const MovingAverageDatapointParams & params
);

createScalar virtual

ServiceID createScalar(
    const ScalarDatapointParams & params
);

createString virtual

ServiceID createString(
    const StringDatapointParams & params
);

createVector virtual

ServiceID createVector(
    const VectorDatapointParams & params
);

remove virtual

void remove(
    const ServiceID serviceID
);

createId protected

unsigned createId(
    unsigned type
);

createService protected

template < typename ServiceType, typename ParamsType > Poco::OSP::ServiceRef::Ptr createService(
    Poco::SharedPtr < ServiceType > pService,
    const std::string & id,
    const ParamsType & params
);

Securely control IoT edge devices from anywhere   Connect a Device