blob: 8e231c8d8572117a2804475a34666a46de49f94d [file] [log] [blame]
Thomas Psota7e562b62020-04-30 15:11:32 +02001#include <BaSyx/submodel/simple/parts/ConceptDescription.h>
2
3using namespace basyx::submodel::simple;
Constantin Ziesche02817f12020-08-04 21:40:43 +02004using namespace basyx::submodel;
Thomas Psota7e562b62020-04-30 15:11:32 +02005
6
7ConceptDescription::ConceptDescription(const std::string & idShort, const Identifier & identifier)
Constantin Ziesche02817f12020-08-04 21:40:43 +02008 : Identifiable{idShort, identifier}
9{}
Thomas Psota7e562b62020-04-30 15:11:32 +020010
Constantin Ziesche02817f12020-08-04 21:40:43 +020011const api::IElementContainer<api::IDataSpecification> & ConceptDescription::getEmbeddedDataSpecification() const
Thomas Psota7e562b62020-04-30 15:11:32 +020012{
13 return this->embeddedDataSpecs;
14}
15
Constantin Ziesche02817f12020-08-04 21:40:43 +020016const std::vector<std::unique_ptr<api::IReference>> & ConceptDescription::getIsCaseOf() const
Thomas Psota7e562b62020-04-30 15:11:32 +020017{
18 return this->isCaseOf;
19}
20
Constantin Ziesche02817f12020-08-04 21:40:43 +020021void ConceptDescription::addEmbeddedDataSpecification(std::unique_ptr<DataSpecification> data_specification)
22{
23 this->embeddedDataSpecs.addElement(std::move(data_specification));
24}
25
26void ConceptDescription::addIsCaseOf(std::unique_ptr<Reference> reference)
27{
28 this->isCaseOf.push_back(std::move(reference));
29};
Thomas Psota7e562b62020-04-30 15:11:32 +020030
31// Inherited via IHasDataSpecification
32void ConceptDescription::addDataSpecification(const Reference & reference)
33{
34 return this->dataSpec.addDataSpecification(reference);
35};
36
37const std::vector<Reference> ConceptDescription::getDataSpecificationReference() const
38{
39 return this->dataSpec.getDataSpecificationReference();
Thomas Psota7e562b62020-04-30 15:11:32 +020040}