Thomas Psota | 7e562b6 | 2020-04-30 15:11:32 +0200 | [diff] [blame] | 1 | #include <BaSyx/submodel/simple/parts/ConceptDescription.h> |
| 2 | |
| 3 | using namespace basyx::submodel::simple; |
Constantin Ziesche | 02817f1 | 2020-08-04 21:40:43 +0200 | [diff] [blame^] | 4 | using namespace basyx::submodel; |
Thomas Psota | 7e562b6 | 2020-04-30 15:11:32 +0200 | [diff] [blame] | 5 | |
| 6 | |
| 7 | ConceptDescription::ConceptDescription(const std::string & idShort, const Identifier & identifier) |
Constantin Ziesche | 02817f1 | 2020-08-04 21:40:43 +0200 | [diff] [blame^] | 8 | : Identifiable{idShort, identifier} |
| 9 | {} |
Thomas Psota | 7e562b6 | 2020-04-30 15:11:32 +0200 | [diff] [blame] | 10 | |
Constantin Ziesche | 02817f1 | 2020-08-04 21:40:43 +0200 | [diff] [blame^] | 11 | const api::IElementContainer<api::IDataSpecification> & ConceptDescription::getEmbeddedDataSpecification() const |
Thomas Psota | 7e562b6 | 2020-04-30 15:11:32 +0200 | [diff] [blame] | 12 | { |
| 13 | return this->embeddedDataSpecs; |
| 14 | } |
| 15 | |
Constantin Ziesche | 02817f1 | 2020-08-04 21:40:43 +0200 | [diff] [blame^] | 16 | const std::vector<std::unique_ptr<api::IReference>> & ConceptDescription::getIsCaseOf() const |
Thomas Psota | 7e562b6 | 2020-04-30 15:11:32 +0200 | [diff] [blame] | 17 | { |
| 18 | return this->isCaseOf; |
| 19 | } |
| 20 | |
Constantin Ziesche | 02817f1 | 2020-08-04 21:40:43 +0200 | [diff] [blame^] | 21 | void ConceptDescription::addEmbeddedDataSpecification(std::unique_ptr<DataSpecification> data_specification) |
| 22 | { |
| 23 | this->embeddedDataSpecs.addElement(std::move(data_specification)); |
| 24 | } |
| 25 | |
| 26 | void ConceptDescription::addIsCaseOf(std::unique_ptr<Reference> reference) |
| 27 | { |
| 28 | this->isCaseOf.push_back(std::move(reference)); |
| 29 | }; |
Thomas Psota | 7e562b6 | 2020-04-30 15:11:32 +0200 | [diff] [blame] | 30 | |
| 31 | // Inherited via IHasDataSpecification |
| 32 | void ConceptDescription::addDataSpecification(const Reference & reference) |
| 33 | { |
| 34 | return this->dataSpec.addDataSpecification(reference); |
| 35 | }; |
| 36 | |
| 37 | const std::vector<Reference> ConceptDescription::getDataSpecificationReference() const |
| 38 | { |
| 39 | return this->dataSpec.getDataSpecificationReference(); |
Thomas Psota | 7e562b6 | 2020-04-30 15:11:32 +0200 | [diff] [blame] | 40 | } |