X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Console%2FNode.hh;h=29c5511fc5cfc98446ffa0b95f032e0f9c5ab0fe;hb=bf1d8ba5ce6fc6a169a938183f8d01c8bdbccf32;hp=86c3e17ff146644f1e08f857937329e83b1f8e97;hpb=f2cc6f8a4ca99301f9f26156803e541ec2dff66b;p=senf.git diff --git a/Console/Node.hh b/Console/Node.hh index 86c3e17..29c5511 100644 --- a/Console/Node.hh +++ b/Console/Node.hh @@ -210,8 +210,6 @@ //#include "Node.mpp" ///////////////////////////////hh.p//////////////////////////////////////// -#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP() - namespace senf { namespace console { @@ -411,6 +409,9 @@ namespace console { be saved and/or re-attached at some other place in the tree. */ + bool hasChild(std::string const & name) const; + ///< \c true, if there is a child with name \a name + GenericNode & get(std::string const & name) const; ///< Get child node /**< \throws UnknownNodeNameException if a child \a name @@ -489,8 +490,6 @@ namespace console { friend DirectoryNode & root(); }; - BOOST_TYPEOF_REGISTER_TYPE(DirectoryNode); - /// Exception: Unknown node name struct UnknownNodeNameException : public senf::Exception { UnknownNodeNameException() : senf::Exception("Unknown node name") {}}; @@ -617,12 +616,16 @@ namespace console { Function const & fn, ...); #endif - BOOST_TYPEOF_REGISTER_TYPE(SimpleCommandNode); - DirectoryNode & root(); }} +#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP() + +BOOST_TYPEOF_REGISTER_TYPE(senf::console::DirectoryNode) +BOOST_TYPEOF_REGISTER_TYPE(senf::console::SimpleCommandNode) + + ///////////////////////////////hh.e//////////////////////////////////////// #include "Node.cci" #include "Node.ct"