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