]> git.lyx.org Git - lyx.git/blobdiff - src/support/FileInfo.h
* lyxfunctional.h: delete compare_memfun and helper classes
[lyx.git] / src / support / FileInfo.h
index f31e3f6333d4d563dcc449b215e95396069f2875..2bf5eaae778cbd2e28b86dd5381420de4eb352d4 100644 (file)
 #ifndef FILE_INFO_H
 #define FILE_INFO_H
 
-#include <ctime>
+#include <boost/utility.hpp>
 
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
-#include <boost/utility.hpp>
-#include "LString.h"
+
+#include <ctime>
+#include <string>
+
 
 namespace lyx {
 namespace support {
@@ -36,13 +38,13 @@ public:
        /** Get information about file.
            If link is true, the information is about the link itself, not
            the file that is obtained by tracing the links. */
-       explicit FileInfo(string const & path, bool link = false);
+       explicit FileInfo(std::string const & path, bool link = false);
 
        /// File descriptor
        explicit FileInfo(int fildes);
 
        /// Query a new file
-       FileInfo & newFile(string const & path, bool link = false);
+       FileInfo & newFile(std::string const & path, bool link = false);
 
        /// Query a new file descriptor
        FileInfo & newFile(int fildes);
@@ -54,7 +56,7 @@ public:
        mode_t getMode() const;
 
        /// Constructs standard mode string (ls style)
-       string modeString() const;
+       std::string modeString() const;
 
        ///
        time_t getModificationTime() const;
@@ -135,7 +137,7 @@ private:
        ///
        int err_;
        ///
-       string fname_;
+       std::string fname_;
 };
 
 } // namespace support