X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Console%2FNode.cci;h=8fe2c2bca879c4fd5495c7ed04d8a41d0ed4042a;hb=1b1d76302a5d61e918ef71f1c8e11f80ac1262e2;hp=6f24e9c3a6bb9271e8760caac9670c1f20900620;hpb=80c6cb7ba9ad7776824c84809f422209adf27331;p=senf.git diff --git a/Console/Node.cci b/Console/Node.cci index 6f24e9c..8fe2c2b 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() {} @@ -170,9 +178,19 @@ prefix_ senf::console::DirectoryNode::cptr senf::console::DirectoryNode::thisptr // senf::console::SyntaxErrorException prefix_ senf::console::SyntaxErrorException::SyntaxErrorException(std::string const & msg) - : Exception(msg) + : message_(msg) +{} + +prefix_ senf::console::SyntaxErrorException::~SyntaxErrorException() + throw() {} +prefix_ std::string const & senf::console::SyntaxErrorException::message() + const +{ + return message_; +} + /////////////////////////////////////////////////////////////////////////// // senf::console::CommandNode