31 static ofstream *COUT_FILE;
32 static ostringstream *COUT_STRING;
33 static streambuf *COUT_BUFFER;
61 inline static SP::CORE_IO
New(){
161 vector<tString>& files);
static tString getBasename(const tString &file)
get the base nname of the file
Definition: CORE_IO.cpp:269
static void beginRedirectOutputToString()
redirection of the output to string
Definition: CORE_IO.cpp:230
static tBoolean mv(const tString &src, const tString &dest)
move file
Definition: CORE_IO.cpp:340
static void endRedirectOutput(tString &message)
end of redirection of the output to file
Definition: CORE_IO.cpp:245
static tBoolean isPath(const tString &file)
test if the file is a path
Definition: CORE_IO.cpp:298
static tBoolean removeDirectory(const tString &path)
remove the path if and only if the path is empty
Definition: CORE_IO.h:90
this class describes the IO class
Definition: CORE_IO.h:18
static tString getExtension(const tString &file)
get the extension toto.html => html
Definition: CORE_IO.cpp:24
static tString getPrefix(const tString &file)
get the prefix ie all the name before the last .
Definition: CORE_IO.cpp:51
static tBoolean cp(const tString &src, const tString &dest)
copy file
Definition: CORE_IO.cpp:327
static tBoolean exists(const tString &filename)
test if the file or path exists
Definition: CORE_IO.cpp:319
#define tBoolean
Definition: types.h:35
static tBoolean createDirectory(const tString &path)
create the path return false if the path does not exists
Definition: CORE_IO.cpp:274
CORE_IO()
build a CORE_IO
Definition: CORE_IO.cpp:16
static void getPathAndFileName(const tString &file, tString &path, tString &fileName)
get the path and file name
Definition: CORE_IO.cpp:66
static tBoolean removeFile(const tString &filename)
remove the file
Definition: CORE_IO.cpp:290
static tBoolean createPath(const tString &path)
create the path return false if the path does not exists
Definition: CORE_IO.h:108
static void beginRedirectOutputToFile(const tString &fn)
redirection of the output to file
Definition: CORE_IO.cpp:216
static void setExtension(tString &file, const tString &ext)
set the extension
Definition: CORE_IO.cpp:34
this class describes an array
Definition: CORE_Array.h:18
static tBoolean removePath(const tString &path, const tBoolean &removeOnlyEmptyDir)
remove the path
Definition: CORE_IO.h:97
static tString getCurrentPath()
get the current path
Definition: CORE_IO.cpp:264
static SP::CORE_IO New()
create a new CORE_Io class
Definition: CORE_IO.h:61
abstract base class for most classes.
Definition: CORE_Object.h:30
static tBoolean getFiles(const tString &path, const tString &filter, CORE_StringArray &files)
get all files in path with filter in files vector
Definition: CORE_IO.cpp:127
#define tString
Definition: types.h:36
static void getPaths(const tString &rootPath, CORE_StringArray &paths)
get the all the paths of the root path
Definition: CORE_IO.cpp:113
static tBoolean getContents(const tString &path, CORE_StringArray &files)
get all contents of path
Definition: CORE_IO.cpp:93
static tBoolean removePath(const tString &path)
remove the path if and only if the path is empty
Definition: CORE_IO.h:84
static tBoolean isFile(const tString &file)
test if the file is a regular file
Definition: CORE_IO.cpp:308
virtual ~CORE_IO(void)
destroy a CORE_IO
Definition: CORE_IO.cpp:21
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:106