Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
@@ -0,0 +1,40 @@
|
||||
/**
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
* Created by Hannes Baeuerle, SLSE, 2016-05-23
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include <QtCore/QString>
|
||||
#include <ParticipantManagement/ppm_db.h>
|
||||
#include <ParticipantManagement/ppm.hpp>
|
||||
|
||||
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<int32_t> inferiorIds);
|
||||
|
||||
Database::PpmTemplate dbEntry() const;
|
||||
|
||||
private:
|
||||
Database::PpmTemplate m_data;
|
||||
std::vector<int32_t> m_inferiorIds;
|
||||
}; // class Template
|
||||
} //namespace TemplateHandling
|
||||
} //namespace ParticipantManagement
|
||||
Reference in new issue
Block a user