]> 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 b83e0dc752a197815e6aaec482b64fe08e4b35d4..2bf5eaae778cbd2e28b86dd5381420de4eb352d4 100644 (file)
@@ -6,23 +6,24 @@
  *
  * \author Lars Gullik Bjønnes
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
 #ifndef FILE_INFO_H
 #define FILE_INFO_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
-
-#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 {
 
 /** Use objects of this class to get information about files.
  *
@@ -37,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);
@@ -55,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;
@@ -136,7 +137,10 @@ private:
        ///
        int err_;
        ///
-       string fname_;
+       std::string fname_;
 };
 
+} // namespace support
+} // namespace lyx
+
 #endif