3 * Psychlops Standard Library (Universal)
5 * Last Modified 2005/10/10 by Kenchi HOSOKAWA
6 * (C) 2005 Kenchi HOSOKAWA, Kazushi MARUYA, Takao SATO
9 #ifndef HEADER_PSYCHLOPS_IO_FILE
10 #define HEADER_PSYCHLOPS_IO_FILE
21 static bool appname_initialized;
23 enum { PATH_APP=0, PATH_RSC, PATH_HOME, PATH_SETTING, PATH_DOCUMENTS, PATH_DOCUMENTS_ROOT };
24 struct PATH_ID_STRING {
26 const std::string id_string;
27 const unsigned int id_string_length;
28 PATH_ID_STRING(const char * id_str);
30 static PATH_ID_STRING STANDARD_PATH[6];
\r
31 static const char PATH_DEVIDER;
34 static void initialize();
35 static void initialize_appname();
36 static std::string getCurrentDirectory();
\r
37 static void setCurrentDirectory(const std::string &path, bool force_mkdir);
\r
38 static void setCurrentDirectoryDefault();
39 static std::string decodePath(const char * path);
40 static std::string decodePath(const std::string &path);
\r
41 static std::string replacePathDevider(const std::string &path);
45 } /* <- namespace Psycholops */