| IOLink 1.11.0

Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
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
MetadataNodeFactory & | operator= (const MetadataNodeFactory &other)=delete
MetadataNodeFactory & | operator= (MetadataNodeFactory &&other)=delete

## Static Public Member Functions
static std::shared_ptr< MetadataNode > | create (const std::string &key, std::shared_ptr< VariantDataValue > value)
| To create a metadata node with a key and a value.

## 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

  key | string to identify the node
  value | the 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:

- iolink/public/include/iolink/metadata/MetadataNodeFactory.h