OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
MetadataEntrySingle.h
Go to the documentation of this file.
1#pragma once
2#include "MetadataEntry.h"
3#include "OTCore/Variable.h"
4
6{
7public:
8 MetadataEntrySingle(const std::string& name, ot::Variable&& value) : MetadataEntry(name), _value(value){}
9 MetadataEntrySingle(const std::string& name, const ot::Variable& value) : MetadataEntry(name), _value(value){}
10 const ot::Variable& getValue() const { return _value; }
11 bool operator==(const MetadataEntrySingle& other);
12
13private:
14 const ot::Variable _value;
15};
bsoncxx::types::value value
Definition DocumentManager.h:16
Definition MetadataEntry.h:5
Definition MetadataEntrySingle.h:6
MetadataEntrySingle(const std::string &name, ot::Variable &&value)
Definition MetadataEntrySingle.h:8
const ot::Variable & getValue() const
Definition MetadataEntrySingle.h:10
MetadataEntrySingle(const std::string &name, const ot::Variable &value)
Definition MetadataEntrySingle.h:9
bool operator==(const MetadataEntrySingle &other)
Definition MetadataEntrySingle.cpp:3
Definition Variable.h:107