CDPOperator Class

An operator that can do operations on CDPObject properties etc. More...

Header: #include <Signal/CDPOperator.h>
Inherits: CDPOperatorBase

Public Functions

CDPOperator(const CDPPropertyBase &in)
~CDPOperator() override
ArgumentBase *DefaultInputArgument() const
ArgumentBase *DefaultOutputArgument() const
ArgumentBase *FindArgument(const std::string &name)
CDPModel *GetModel(void) const override
void UpdateTimestamp(uint64_t timestamp) override

Reimplemented Public Functions

virtual void Configure(XMLPrimitive *pPrim) override
virtual void Create(const char *shortName, CDPBaseObject *pParent) override
virtual void FillNodeChildren(CDP::StudioAPI::NodeStream &stream) const override
virtual const std::string &GetName() override
virtual CDP::StudioAPI::CDPNodeType GetNodeType() const override
virtual std::string GetNodeTypeName() const override
virtual const CDPPropertyBase &GetOutput() override
virtual void Pass() override

Additional Inherited Members

Detailed Description

An operator that can do operations on CDPObject properties etc.

Member Function Documentation

CDPOperator::CDPOperator(const CDPPropertyBase &in)

constructor takes a reference to a property to use as input

CDPOperator::~CDPOperator()

destructor

[override virtual] void CDPOperator::Configure(XMLPrimitive *pPrim)

Reimplemented from CDPBaseObject::Configure().

Configure() function. XML Configuration is supplied in pPrim. Overriding this should only be needed if you must handle xml that can't be done through the property system, typically a dynamic configuration.

[override virtual] void CDPOperator::Create(const char *shortName, CDPBaseObject *pParent)

Reimplemented from CDPBaseObject::Create().

create function creates the operator and ties it parent object. Put your property creations here.

ArgumentBase *CDPOperator::DefaultInputArgument() const

Default input argument is not part of arguments list and its value is accessible via m_input member in code. Returns default input argument for toplevel operators or nullptr for signal operators

ArgumentBase *CDPOperator::DefaultOutputArgument() const

Default output argument is not part of arguments list and its value is assignable via m_output member in code. Returns default output argument for toplevel operators or nullptr for signal operators

[override virtual] void CDPOperator::FillNodeChildren(CDP::StudioAPI::NodeStream &stream) const

Reimplemented from CDPNode::FillNodeChildren().

ArgumentBase *CDPOperator::FindArgument(const std::string &name)

CDPModel *CDPOperator::GetModel(void) const

[override virtual] const std::string &CDPOperator::GetName()

Reimplemented from CDPOperatorBase::GetName().

[override virtual] CDP::StudioAPI::CDPNodeType CDPOperator::GetNodeType() const

Reimplemented from ICDPNode::GetNodeType().

Returns CDP::StudioAPI::eCDP_OPERATOR_BASE_NODE.

[override virtual] std::string CDPOperator::GetNodeTypeName() const

Reimplemented from ICDPNode::GetNodeTypeName().

Returns "CDPOperator<T>, where T designates the operators value type".

[override virtual] const CDPPropertyBase &CDPOperator::GetOutput()

Reimplemented from CDPOperatorBase::GetOutput().

[override virtual] void CDPOperator::Pass()

Reimplemented from CDPOperatorBase::Pass().

Provide No Operation implementation for disabled operator behavior

Default implementaion passes input directly to output.

void CDPOperator::UpdateTimestamp(uint64_t timestamp)

© CDP Technologies AS - All rights reserved