5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 2 of the License, or
8 // (at your option) any later version.
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the
17 // Free Software Foundation, Inc.,
18 // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 \brief UNAddress public header */
24 #define HH_UNAddress_ 1
28 #include <boost/operators.hpp>
29 #include <boost/filesystem/path.hpp>
30 #include "../../../Utils/SafeBool.hh"
32 //#include "UNAddress.mpp"
33 ///////////////////////////////hh.p////////////////////////////////////////
36 : public boost::filesystem::path,
37 public ComparableSafeBool<UNAddress>
41 explicit UNAddress(boost::filesystem::path);
42 static UNAddress fromString(std::string & s);
43 static UNAddress fromPath(boost::filesystem::path & p);
44 static std::string pathString();
45 struct AddressException : public std::exception {};
47 static boost::filesystem::path path;
49 const std::ostream & operator<<(std::ostream & os, UNAddress const & addr);
53 ///////////////////////////////hh.e////////////////////////////////////////
54 //#include "UNAddress.cci"
55 //#include "UNAddress.ct"
56 //#include "UNAddress.cti"
64 // c-file-style: "senf"
65 // indent-tabs-mode: nil
66 // ispell-local-dictionary: "american"
67 // compile-command: "scons -u test"