]> git.lyx.org Git - lyx.git/blobdiff - src/support/lyxlib.h
remove commented HAVE_SSTREAM code
[lyx.git] / src / support / lyxlib.h
index 3933cf0b63475920cf1ba629fe86c05db2ec289c..e7fd1c55a77dc43c59b065e94f72ceb99da8d02b 100644 (file)
 
 // This should have been a namespace
 #ifdef CXX_WORKING_NAMESPACES
+///
 namespace lyx {
        ///
        char * getcwd(char * buffer, size_t size);
        ///
        int chdir(char const * name);
+       /// Returns false it it fails
+       bool rename(char const * from, char const * to);
+       /// Returns false it it fails
+       bool copy(string const & from, string const & to);
        /// generates a checksum
        unsigned long sum(char const * file);
        /// returns a date string (not used currently)
        char * date(); 
        /// returns the name of the user (not used currently)
-       string getUserName();
+       string const getUserName();
        ///
        int kill(long int pid, int sig);
        ///
@@ -41,17 +46,22 @@ namespace lyx {
        int putenv(char const * str);
 }
 #else
+///
 struct lyx {
        ///
        static char * getcwd(char * buffer, size_t size);
        ///
        static int chdir(char const * name);
+       /// Returns false it it fails
+       static bool rename(char const * from, char const * to);
+       /// Returns false it it fails
+       static bool copy(string const & from, string const & to);
        /// generates a checksum
        static unsigned long sum(char const * file);
        /// returns a date string (not used currently)
        static char * date(); 
        /// returns the name of the user (not used currently)
-       static string getUserName();
+       static string const getUserName();
        ///
        static int kill(long int pid, int sig);
        ///