143 return (path.find(PATH_SEPARATOR)==0);
void setExtension(const tString &ext)
set the extension
Definition: CORE_File.h:84
static const tString PATH_SEPARATOR
path separator depending on system
Definition: CORE_File.h:24
static void setExtension(const tString &ext, tString &fileName)
set the extension of the file
Definition: CORE_File.cpp:30
void setLength(const tULInt &l)
set the length of the file
Definition: CORE_File.h:98
tString getExtension() const
get the extension
Definition: CORE_File.h:78
const tBoolean & isClosed() const
return true if the file is closed @ return true if the file is closed
Definition: CORE_File.h:134
this class describes a file
Definition: CORE_File.h:15
virtual tBoolean translate(const tLInt &dx)=0
translate the current index position of the file
#define tBoolean
Definition: types.h:139
CORE_File()
build a CORE_File
Definition: CORE_File.cpp:12
#define tLInt
Definition: types.h:42
virtual void close()
close the file
Definition: CORE_File.h:125
tULInt mLength
Definition: CORE_File.h:31
virtual tBoolean isEndOfFile() const =0
test if the cursor is at the end of file
#define tULInt
Definition: types.h:39
static tBoolean isAbsolutePath(const tString &path)
return tre if the path is absolute path
Definition: CORE_File.h:142
virtual ~CORE_File(void)
destroy a CORE_File
Definition: CORE_File.cpp:17
tBoolean mIsClosed
Definition: CORE_File.h:33
abstract base class for most classes.
Definition: CORE_Object.h:53
#define tString
Definition: types.h:135
virtual tULInt getCurrentIndex() const =0
get the current index of the file
virtual tBoolean open(const tString &fn)
open the file
Definition: CORE_File.h:107
tString mExtension
Definition: CORE_File.h:28
const tULInt & getLength() const
get the length of the file
Definition: CORE_File.h:91
virtual tBoolean moveTo(const tULInt &index)=0
move the current index position of the file to index