27 lines
870 B
C++
Executable File
27 lines
870 B
C++
Executable File
/**
|
|
* Helper Class for handling Participant Information
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Malte Diers, NLE, 2019-07-11
|
|
*/
|
|
|
|
#include "participantinformation.h"
|
|
#include <ParticipantManagement/ppm.hpp>
|
|
|
|
namespace HighLevelArchitecture {
|
|
|
|
ParticipantInformation::ParticipantInformation(const ParticipantManagement::Participant &participant,
|
|
const TypeStruct &_typestruct,
|
|
const ParticipantPosition &_position)
|
|
: participantId(participant.id())
|
|
, equipmentNo(participant.equipmentNumber().is_set() ? participant.equipmentNumber().get() : 0)
|
|
, partyId(participant.partyId())
|
|
, parentId(participant.superiorId())
|
|
, typeStruct(_typestruct)
|
|
, designator(QString::fromStdString(participant.designator()))
|
|
, position(_position)
|
|
{}
|
|
|
|
} // Namespace HLA
|