From b71531b42b3325fd6079a7039aae8641262c8adf Mon Sep 17 00:00:00 2001 From: jai Date: Mon, 29 Jan 2007 21:15:18 +0000 Subject: branching/tagging --- .../CIAO/CCF/CCF/CompilerElements/FileSystem.hpp | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 modules/CIAO/CCF/CCF/CompilerElements/FileSystem.hpp (limited to 'modules/CIAO/CCF/CCF/CompilerElements/FileSystem.hpp') diff --git a/modules/CIAO/CCF/CCF/CompilerElements/FileSystem.hpp b/modules/CIAO/CCF/CCF/CompilerElements/FileSystem.hpp new file mode 100644 index 00000000000..ba9483f04e6 --- /dev/null +++ b/modules/CIAO/CCF/CCF/CompilerElements/FileSystem.hpp @@ -0,0 +1,33 @@ +// file : CCF/CompilerElements/FileSystem.hpp +// author : Boris Kolpackov +// cvs-id : $Id$ + +#ifndef CCF_RUNTIME_FILE_SYSTEM_HPP +#define CCF_RUNTIME_FILE_SYSTEM_HPP + +#include + +#include +#include +#include +#include + +namespace fs +{ + using namespace boost::filesystem; + + inline path + normalize (path const& p) + { + path result; + + for (path::iterator i (p.begin ()), e (p.end ()); i != e; ++i) + { + if (*i != ".") result /= path (*i, native); + } + + return result; + } +} + +#endif // CCF_RUNTIME_FILE_SYSTEM_HPP -- cgit v1.2.1