OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
MetadataEntryObject.h
Go to the documentation of this file.
1#pragma once
2#include "MetadataEntry.h"
3#include <list>
4#include <memory>
5
7{
8public:
9 MetadataEntryObject(const std::string& name) :MetadataEntry(name) {}
10 const std::list<std::shared_ptr<MetadataEntry>>& getEntries() const { return _values; };
11 void AddMetadataEntry(std::shared_ptr<MetadataEntry> entry) { _values.push_back(entry); }
12 void AddMetadataEntry(std::list<std::shared_ptr<MetadataEntry>> entries) { _values.splice(_values.end(), entries); }
13 bool operator==(const MetadataEntryObject& other);
14private:
15 std::list<std::shared_ptr<MetadataEntry>> _values;
16};
Definition MetadataEntry.h:5
Definition MetadataEntryObject.h:7
bool operator==(const MetadataEntryObject &other)
Definition MetadataEntryObject.cpp:4
MetadataEntryObject(const std::string &name)
Definition MetadataEntryObject.h:9
void AddMetadataEntry(std::shared_ptr< MetadataEntry > entry)
Definition MetadataEntryObject.h:11
void AddMetadataEntry(std::list< std::shared_ptr< MetadataEntry > > entries)
Definition MetadataEntryObject.h:12
const std::list< std::shared_ptr< MetadataEntry > > & getEntries() const
Definition MetadataEntryObject.h:10