/** * $Id$ * $HeadURL$ * $Author$ * Created by Hannes Baeuerle, SLSE, 2016-05-23 */ #pragma once #include #include #include namespace ParticipantManagement { namespace TemplateHandling { class Template { public: explicit Template(const Database::PpmTemplate &tmpl) : m_data(tmpl) {} int32_t id() const { return m_data.id; } int32_t typeId() const { return m_data.typeId; } int32_t superiorId() const { return m_data.superiorId; } TemplateParticipant toDdsTemplateParticipant() const; bool hasToBeChanged(const TemplateData &newData); bool hasNewSuperiorId(int32_t superiorId); bool hasNewInferiorStructure(std::vector inferiorIds); Database::PpmTemplate dbEntry() const; private: Database::PpmTemplate m_data; std::vector m_inferiorIds; }; // class Template } //namespace TemplateHandling } //namespace ParticipantManagement