34 namespace fty = console::factory;
50 for (QAlgoMap::const_iterator i = qAlgoMap_.begin(); i != qAlgoMap_.end(); ++i) {
51 os << i->first << std::endl;
58 QAlgoMap::const_iterator i (qAlgoMap_.find( key));
59 if (i != qAlgoMap_.end())
60 return i->second->create();
62 throw Exception(
"QueueingAlgorithm not registered: ") << key;
68 prefix_ senf::ppi::FIFOQueueingAlgorithm::FIFOQueueingAlgorithm()
74 prefix_ bool senf::ppi::FIFOQueueingAlgorithm::v_enqueue(
Packet const & packet,
bool force)
76 if (!force and (queue_.size() >= max_size_))
83 prefix_ void senf::ppi::FIFOQueueingAlgorithm::v_clear()
85 while (! queue_.empty())
SENF_PPI_REGISTER_QALGORITHM("FIFOQueueingAlgorithm", senf::ppi::FIFOQueueingAlgorithm)
QueueingSocketSink public header.
std::unique_ptr< QueueingAlgorithm > ptr
NodeType & add(std::string const &name, boost::shared_ptr< NodeType > node)
static QueueingAlgorithm::ptr create()
void dump(std::ostream &os) const
QueueingAlgorithm::ptr createQAlgorithm(std::string const &key) const
console::DirectoryNode & consoleDir()
NodeType & add(std::string const &name, boost::shared_ptr< NodeType > node)