*
* \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.
*
/** 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);
mode_t getMode() const;
/// Constructs standard mode string (ls style)
- string modeString() const;
+ std::string modeString() const;
///
time_t getModificationTime() const;
/// Total file size in bytes
off_t getSize() const;
- /// Number of hard links
- nlink_t getNumberOfLinks() const;
-
/// User ID of owner
uid_t getUid() const;
///
int err_;
///
- string fname_;
+ std::string fname_;
};
+} // namespace support
+} // namespace lyx
+
#endif