blob: 2cb4a847e5c63bcf535eb044dd93bae4f835ba87 [file] [log] [blame]
Constantin Ziesche02817f12020-08-04 21:40:43 +02001#include <BaSyx/submodel/map_v2/parts/ConceptDictionary.h>
2
3
4namespace basyx {
5namespace submodel {
6namespace map {
7using namespace basyx::submodel::api;
8
9ConceptDictionary::ConceptDictionary(const std::string & idShort)
10 : vab::ElementMap{}
11 , Referable(idShort)
12{
13 this->map.insertKey("ConceptDescriptions", this->concept_descriptions.getMap());
14}
15
16const api::IElementContainer<api::IConceptDescription> & ConceptDictionary::getConceptDescriptions() const
17{
18 return this->concept_descriptions;
19}
20
21void ConceptDictionary::addConceptDescription(std::unique_ptr<ConceptDescription> description)
22{
23 this->concept_descriptions.addElement(std::move(description));
24}
25
26
27}
28}
29}