X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2FConsole%2FScopedDirectory.hh;h=c6038cfb54d408051f2f939d66c5e3e2d9bf0090;hb=93d9568d448749dc187e7622b733a4a3caa319df;hp=481a4dde2777712797cc42500575dbd449f6e55d;hpb=7d62c38fca85add3e5a04f0518d6f1417fa6ca69;p=senf.git diff --git a/senf/Utils/Console/ScopedDirectory.hh b/senf/Utils/Console/ScopedDirectory.hh index 481a4dd..c6038cf 100644 --- a/senf/Utils/Console/ScopedDirectory.hh +++ b/senf/Utils/Console/ScopedDirectory.hh @@ -1,6 +1,6 @@ // $Id$ // -// Copyright (C) 2008 +// Copyright (C) 2008 // Fraunhofer Institute for Open Communication Systems (FOKUS) // Competence Center NETwork research (NET), St. Augustin, GERMANY // Stefan Bund @@ -33,7 +33,7 @@ #include "LazyDirectory.hh" // For ScopedDirectory template default arg //#include "ScopedDirectory.mpp" -///////////////////////////////hh.p//////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// namespace senf { namespace console { @@ -48,9 +48,9 @@ namespace console { DirectoryNode & node() const; ///< Access the proxied DirectoryNode operator DirectoryNode & () const; ///< Access the proxied DirectoryNode - /////////////////////////////////////////////////////////////////////////// + //-//////////////////////////////////////////////////////////////////////// ///\name Proxied members (see DirectoryNode) - ///\{ + //\{ GenericNode::ptr remove(std::string const & name); bool hasChild(std::string const & name) const; @@ -61,8 +61,16 @@ namespace console { GenericNode & get(std::string const & name) const; DirectoryNode::ChildrenRange children() const; DirectoryNode & doc(std::string const & doc); + std::string const & name() const; + bool active() const; + std::string path() const; + std::string path(DirectoryNode const & root) const; + boost::shared_ptr parent() const; + GenericNode::ptr unlink(); + void help(std::ostream & output) const; + std::string shorthelp() const; - ///\} + //\} protected: ScopedDirectoryBase(); @@ -86,9 +94,9 @@ namespace console { public: ScopedDirectory configDir; - MyClass() : configDir(this) + MyClass() : configDir(this) { - configDIr.add(...); + configDir.add(...); } }; \endcode @@ -110,19 +118,19 @@ namespace console { class ScopedDirectory : public ScopedDirectoryBase { public: - /////////////////////////////////////////////////////////////////////////// + //-//////////////////////////////////////////////////////////////////////// // Types - + typedef Owner owner; - /////////////////////////////////////////////////////////////////////////// + //-//////////////////////////////////////////////////////////////////////// ///\name Structors and default members - ///@{ + //\{ explicit ScopedDirectory(Owner * owner); - ///@} - /////////////////////////////////////////////////////////////////////////// + //\} + //-//////////////////////////////////////////////////////////////////////// template NodeType & add(std::string const & name, boost::shared_ptr node); @@ -163,7 +171,7 @@ namespace console { }} -///////////////////////////////hh.e//////////////////////////////////////// +//-///////////////////////////////////////////////////////////////////////////////////////////////// #include "ScopedDirectory.cci" //#include "ScopedDirectory.ct" #include "ScopedDirectory.cti"