X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Console%2FNode.cci;h=0193989b31695bd22ca88b07466b4c59f1210461;hb=1863c038d0400159ce49b851a5b81c2ce698c684;hp=c0d76bc0e6c1cd45e37a29adb06025ddfb10a372;hpb=706fe01937df3649e40aed24b75c3d28fc4fa007;p=senf.git diff --git a/Console/Node.cci b/Console/Node.cci index c0d76bc..0193989 100644 --- a/Console/Node.cci +++ b/Console/Node.cci @@ -145,6 +145,14 @@ prefix_ senf::console::DirectoryNode::ChildrenRange senf::console::DirectoryNode return boost::make_iterator_range(children_.begin(), children_.end()); } +prefix_ senf::console::DirectoryNode::ChildrenRange +senf::console::DirectoryNode::completions(std::string const & s) + const +{ + return boost::make_iterator_range(children_.lower_bound(s), + children_.lower_bound(s + "\xff")); +} + prefix_ senf::console::DirectoryNode::DirectoryNode() {} @@ -245,6 +253,8 @@ prefix_ senf::console::SimpleCommandNode::cptr senf::console::SimpleCommandNode: return boost::static_pointer_cast(shared_from_this()); } +#ifndef DOXYGEN + prefix_ senf::console::SimpleCommandNode & senf::console::senf_console_add_node(DirectoryNode & node, std::string const & name, SimpleCommandNode::Function fn, int) @@ -252,6 +262,7 @@ senf::console::senf_console_add_node(DirectoryNode & node, std::string const & n return node.add(name, SimpleCommandNode::create(fn)); } +#endif ///////////////////////////////cci.e/////////////////////////////////////// #undef prefix_