IOLink  IOL_v1.2.0_release
iolink::MetadataNodeFactory Class Reference

A factory to build MetadataNode instances. More...

#include <iolink/metadata/MetadataNodeFactory.h>

Public Member Functions

 MetadataNodeFactory (const MetadataNodeFactory &other)=delete
 
 MetadataNodeFactory (MetadataNodeFactory &&other)=delete
 
MetadataNodeFactoryoperator= (const MetadataNodeFactory &other)=delete
 
MetadataNodeFactoryoperator= (MetadataNodeFactory &&other)=delete
 

Static Public Member Functions

static std::shared_ptr< MetadataNodecreate (const std::string &key, std::shared_ptr< VariantDataValue > value)
 To create a metadata node with a key and a value. More...
 

Detailed Description

A factory to build MetadataNode instances.

Member Function Documentation

◆ create()

static std::shared_ptr<MetadataNode> iolink::MetadataNodeFactory::create ( const std::string &  key,
std::shared_ptr< VariantDataValue value 
)
static

To create a metadata node with a key and a value.

Parameters
keystring to identify the node
valuethe VariantDataValue object associated to the node (can be null if no value)
Returns
the created node

The documentation for this class was generated from the following file: