Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
@@ -0,0 +1,36 @@
|
||||
/**
|
||||
* The Party class represents a party. It holds the data and offers some conversion methods.
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
* Created by Hannes Baeuerle, SLSE, 2016-05-12
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include <ParticipantManagement/ppm_db.h>
|
||||
#include <ParticipantManagement/ppm_dtc.h>
|
||||
|
||||
namespace ParticipantManagement
|
||||
{
|
||||
namespace PartyHandling
|
||||
{
|
||||
class Party
|
||||
{
|
||||
public:
|
||||
explicit Party(const Database::PpmParty &data)
|
||||
: m_data(data)
|
||||
{}
|
||||
|
||||
int32_t id() const { return m_data.id; }
|
||||
|
||||
Database::PpmParty toDbParty() const;
|
||||
ParticipantManagement::Party toDdsParty() const;
|
||||
|
||||
bool hasChanges(const ParticipantManagement::Party &request, const bool bIgnoreIsUsedBy);
|
||||
bool isUsedBy() const { return m_data.isUsedBy; }
|
||||
|
||||
private:
|
||||
Database::PpmParty m_data;
|
||||
};
|
||||
} // namespace PartyHandling
|
||||
} // namespace ParticipantManagement
|
||||
Reference in new issue
Block a user