61 inline static SP::CORE_IO
New(){
186 vector<tString>& files);
static tString getBasename(const tString &file)
get the base nname of the file
Definition: CORE_IO.cpp:321
static void beginRedirectOutputToString()
redirection of the output to string
Definition: CORE_IO.cpp:278
static streambuf * COUT_BUFFER
Definition: CORE_IO.h:33
static tBoolean mv(const tString &src, const tString &dest)
move file
Definition: CORE_IO.cpp:430
this class describes an array
Definition: CORE_Vector.h:19
static void endRedirectOutput(tString &message)
end of redirection of the output to file
Definition: CORE_IO.cpp:293
static tBoolean getFiles(const tString &path, const tString &filter, CORE_StringVector &files)
get all files in path with filter in files vector
Definition: CORE_IO.cpp:145
static tBoolean removeDirectory(const tString &path)
remove the path if and only if the path is empty
Definition: CORE_IO.h:98
this class describes the IO class
Definition: CORE_IO.h:18
static tString getExtension(const tString &file)
get the extension toto.html => html @ param file : name to find the extension
Definition: CORE_IO.cpp:41
static tString getPrefix(const tString &file)
get the prefix ie all the name before the last .
Definition: CORE_IO.cpp:68
static tBoolean cp(const tString &src, const tString &dest)
copy file
Definition: CORE_IO.cpp:417
static tBoolean exists(const tString &filename)
test if the file or path exists
Definition: CORE_IO.cpp:409
#define tBoolean
Definition: types.h:139
static tBoolean createDirectory(const tString &path)
create the path
Definition: CORE_IO.cpp:332
CORE_IO()
build a CORE_IO
Definition: CORE_IO.cpp:34
static void getPathAndFileName(const tString &file, tString &path, tString &fileName)
get the path and file name
Definition: CORE_IO.cpp:83
static tBoolean removeFile(const tString &filename)
remove the file
Definition: CORE_IO.cpp:339
static tBoolean createPath(const tString &path)
create the path
Definition: CORE_IO.h:121
static void beginRedirectOutputToFile(const tString &fn)
redirection of the output to file
Definition: CORE_IO.cpp:264
static void setExtension(tString &file, const tString &ext)
set the extension
Definition: CORE_IO.cpp:51
static void getPaths(const tString &rootPath, CORE_StringVector &paths)
get the all the paths of the root path
Definition: CORE_IO.cpp:131
static tBoolean removePath(const tString &path, const tBoolean &removeOnlyEmptyDir)
remove the path
Definition: CORE_IO.h:107
static tBoolean isPath(const tString &path)
test if the file is a path
Definition: CORE_IO.cpp:386
static tString getCurrentPath()
get the current path
Definition: CORE_IO.cpp:312
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:53
#define tString
Definition: types.h:135
static tBoolean getContents(const tString &path, CORE_StringVector &files)
get all contents of path
Definition: CORE_IO.cpp:110
static ostringstream * COUT_STRING
Definition: CORE_IO.h:32
static tBoolean removePath(const tString &path)
remove the path if and only if the path is empty
Definition: CORE_IO.h:91
static tBoolean isFile(const tString &file)
test if the file is a regular file
Definition: CORE_IO.cpp:398
static ofstream * COUT_FILE
Definition: CORE_IO.h:31
virtual ~CORE_IO()
destroy a CORE_IO
Definition: CORE_IO.cpp:38
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:141