GenericNode::ptr node (i->second);
children_.erase(i);
node->parent_ = 0;
+ node->name_.clear();
return node;
}
}
///////////////////////////////////////////////////////////////////////////
+// senf::console::SyntaxErrorException
+
+prefix_ char const * senf::console::SyntaxErrorException::what()
+ const throw()
+{
+ return message().empty() ? "syntax error" : message().c_str();
+}
+
+///////////////////////////////////////////////////////////////////////////
// senf::console::SimpleCommandNode
prefix_ void senf::console::SimpleCommandNode::v_help(std::ostream & output)
output << doc_ << "\n";
}
+prefix_ void senf::console::SimpleCommandNode::v_execute(std::ostream & output,
+ ParseCommandInfo const & command)
+ const
+{
+ fn_(output, command);
+}
+
///////////////////////////////cc.e////////////////////////////////////////
#undef prefix_
//#include "Node.mpp"