explicit default constructor
This commit is contained in:
parent
c58163fb8d
commit
21e61c7ac4
|
@ -26,10 +26,24 @@
|
|||
|
||||
namespace SACN {
|
||||
|
||||
/**
|
||||
* @brief UniverseSource::UniverseSource
|
||||
*/
|
||||
UniverseSource::UniverseSource()
|
||||
: cid_(UUID::uuid())
|
||||
, description_(std::string())
|
||||
, universe_(0)
|
||||
, priority_(100)
|
||||
, sync_address_(0)
|
||||
, options_(0)
|
||||
{}
|
||||
|
||||
|
||||
/**
|
||||
Construct a Universe Source from an sACN frame PDU
|
||||
*/
|
||||
UniverseSource::UniverseSource(std::shared_ptr<DATA::Pdu> pdu) {
|
||||
UniverseSource::UniverseSource(std::shared_ptr<DATA::Pdu> pdu)
|
||||
{
|
||||
auto root_header = (RLP::rlp_header*)pdu->parent()->header();
|
||||
cid_ = root_header->cid;
|
||||
|
||||
|
|
|
@ -38,9 +38,10 @@ namespace SACN {
|
|||
class UniverseSource
|
||||
{
|
||||
public:
|
||||
UniverseSource();
|
||||
UniverseSource(std::shared_ptr<DATA::Pdu>);
|
||||
|
||||
const UUID::uuid cid() const {return cid_;};
|
||||
const UUID::uuid CID() const {return cid_;};
|
||||
const std::string description() const {return description_;}
|
||||
const uint16_t universe() const {return universe_;}
|
||||
const uint8_t priority() const {return priority_;}
|
||||
|
|
Loading…
Reference in New Issue