cpp/src/frame-data.cpp
// ****
// TBD: this needs to be re-designed :sigh: (the whole network/frame data thing)
this needs to be re-designed :sigh: (the whole network/frame data thing)
this needs to be re - designed : sigh : ( the whole network / frame data thing )
boost::shared_ptr<WireSegment>
WireSegment::createSegment(const NamespaceInfo &namespaceInfo,
                           const boost::shared_ptr<ndn::Data> &data,
                           const boost::shared_ptr<const ndn::Interest> &interest)
{
    if (namespaceInfo.streamType_ == MediaStreamParams::MediaStreamType::MediaStreamTypeVideo &&
        (namespaceInfo.segmentClass_ == SegmentClass::Data || namespaceInfo.segmentClass_ == SegmentClass::Parity))
        return boost::make_shared<WireData<VideoFrameSegmentHeader>>(namespaceInfo, data, interest);
    return boost::make_shared<WireData<DataSegmentHeader>>(namespaceInfo, data, interest);
    ;
}
boost :: shared_ptr < WireSegment > WireSegment :: createSegment ( const NamespaceInfo & namespaceInfo , const boost :: shared_ptr < ndn :: Data > & data , const boost :: shared_ptr < const ndn :: Interest > & interest ) { if ( namespaceInfo . streamType_ == MediaStreamParams :: MediaStreamType :: MediaStreamTypeVideo && ( namespaceInfo . segmentClass_ == SegmentClass :: Data || namespaceInfo . segmentClass_ == SegmentClass :: Parity ) ) return boost :: make_shared < WireData < VideoFrameSegmentHeader > > ( namespaceInfo , data , interest ) ; return boost :: make_shared < WireData < DataSegmentHeader > > ( namespaceInfo , data , interest ) ; ; }
TBD: this needs to be re-designed :sigh: (the whole network/frame data thing)
TBD : this needs to be re - designed : sigh : ( the whole network / frame data thing )