Utils: Revamp documentation overview and add some missing docs
[senf.git] / Socket / Protocols / UN / UNAddress.hh
index 67a7061..1b6ed5f 100644 (file)
@@ -1,6 +1,7 @@
-// $Id$
-//
 // Copyright (C) 2007 
+// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
+// Kompetenzzentrum NETwork research (NET)
+//     David Wagner <david.wagner@fokus.fraunhofer.de>
 //
 // This program is free software; you can redistribute it and/or modify
 // it under the terms of the GNU General Public License as published by
@@ -27,7 +28,7 @@
 #include <string>
 #include <boost/operators.hpp>
 #include <boost/filesystem/path.hpp>
-#include "../../../Utils/SafeBool.hh"
+#include "../../../Utils/safe_bool.hh"
 
 //#include "UNAddress.mpp"
 ///////////////////////////////hh.p////////////////////////////////////////
@@ -41,23 +42,24 @@ namespace senf {
       */
     class UNAddress 
         : public boost::filesystem::path,
-          public ComparableSafeBool<UNAddress>
+          public comparable_safe_bool<UNAddress>
     {   
     public: 
         UNAddress(); ///< Construct an empty address
         explicit UNAddress(boost::filesystem::path);///< Construct an address constant from given path
         static UNAddress fromString(std::string & s); ///< Convert string to address by interpreting the string as path
         static UNAddress fromPath(boost::filesystem::path & p);///< Convert path to address 
-        static std::string pathString(); ///< Return the path of the address as string
+        UNAddress clone(); ///< Clone object 
+        std::string pathString() const; ///< Return the path of the address as string
 
         /** \brief Base-class for UNAddress exceptions */
         struct AddressException : public std::exception {}; 
 
     private:
-        static boost::filesystem::path path;
+        boost::filesystem::path path;
     };
-const std::ostream & operator<<(std::ostream & os, UNAddress const & addr);
 
+std::ostream & operator<<(std::ostream & os, UNAddress const & addr);
 }
 
 ///////////////////////////////hh.e////////////////////////////////////////