Skip to content
Snippets Groups Projects

SDK memory fixes and pipelines

Merged Nicolas Pope requested to merge feature/sdkwrite into master
56 files
+ 841
35
Compare changes
  • Side-by-side
  • Inline
Files
56
#include "feed_impl.hpp"
#include <voltu/types/errors.hpp>
using voltu::internal::FeedImpl;
using voltu::internal::InputFeedImpl;
using voltu::internal::OutputFeedImpl;
FeedImpl::FeedImpl(ftl::stream::Feed* feed, uint32_t fsid)
// ==== Input ==================================================================
InputFeedImpl::InputFeedImpl(ftl::stream::Feed* feed, uint32_t fsid)
: feed_(feed)
{
fsids_.insert(fsid);
}
FeedImpl::~FeedImpl()
InputFeedImpl::~InputFeedImpl()
{
remove();
//remove();
}
std::string FeedImpl::getURI()
std::string InputFeedImpl::getURI()
{
return feed_->getURI(*fsids_.begin());
}
void FeedImpl::remove()
void InputFeedImpl::remove()
{
throw voltu::exceptions::NotImplemented();
}
void InputFeedImpl::submit(const voltu::FramePtr &frame)
{
throw voltu::exceptions::ReadOnly();
}
voltu::FeedType InputFeedImpl::type()
{
throw voltu::exceptions::NotImplemented();
}
voltu::PropertyPtr InputFeedImpl::property(voltu::FeedProperty)
{
throw voltu::exceptions::NotImplemented();
}
// ==== Output =================================================================
OutputFeedImpl::OutputFeedImpl(ftl::stream::Feed* feed, const std::string &uri)
: feed_(feed), uri_(uri)
{
}
OutputFeedImpl::~OutputFeedImpl()
{
//remove();
}
std::string OutputFeedImpl::getURI()
{
return uri_;
}
void OutputFeedImpl::remove()
{
throw voltu::exceptions::NotImplemented();
}
void OutputFeedImpl::submit(const voltu::FramePtr &frame)
{
throw voltu::exceptions::NotImplemented();
}
voltu::FeedType OutputFeedImpl::type()
{
throw voltu::exceptions::NotImplemented();
}
voltu::PropertyPtr OutputFeedImpl::property(voltu::FeedProperty)
{
throw voltu::exceptions::NotImplemented();
}
Loading