70 inline static SP::CORE_File
New(){
103 inline void move(
const int& index) {
105 mBegin=(mBegin<mEnd)?mBegin:mEnd;
133 return search(word,from,-1,cur);
140 return search(word,0,-1,cur);
void close()
close the file
Definition: CORE_File.cpp:69
tString read(const int &from, const int &to)
read the file betwen included position [from,to]
Definition: CORE_File.cpp:83
ostream & operator<<(const T &obj)
writing operator
Definition: CORE_File.h:146
static const tString PATH_SEPARATOR
Definition: CORE_File.h:31
static void setExtension(const tString &ext, tString &fileName)
set the extension of the file
Definition: CORE_File.cpp:175
istream & operator>>(const T &obj)
reading operator
Definition: CORE_File.h:153
this class describes the output by default write on standart output
Definition: CORE_File.h:20
void move(const int &index)
translate of index position
Definition: CORE_File.h:103
#define tBoolean
Definition: types.h:35
CORE_File()
build a CORE_File
Definition: CORE_File.cpp:16
tBoolean open(const tString &fileName, const tFlag &type)
open file
Definition: CORE_File.cpp:29
tBoolean search(const tString &word, const int &from, int &cur)
search the worf in file between position from and end
Definition: CORE_File.h:132
static SP::CORE_File New()
create a CORE_out class
Definition: CORE_File.h:70
tBoolean search(const tString &word, const int &from, const int &to, int &cur)
search the worf in file between position from and end
Definition: CORE_File.cpp:114
#define null
Definition: types.h:13
tBoolean search(const tString &word, int &cur)
search the worf in file between position from and end
Definition: CORE_File.h:139
virtual ~CORE_File(void)
destroy a CORE_File
Definition: CORE_File.cpp:23
static const tFlag WRITE
Definition: CORE_File.h:27
abstract base class for most classes.
Definition: CORE_Object.h:30
#define tString
Definition: types.h:36
static const tFlag UNDEFINED
Definition: CORE_File.h:29
tString read(const int &to)
read the to first characters of file
Definition: CORE_File.h:119
tString getExtension() const
get the extension
Definition: CORE_File.h:88
static const tFlag READ
Definition: CORE_File.h:26
static const tFlag APPEND
Definition: CORE_File.h:28
void begin()
put the current positon to 0
Definition: CORE_File.h:110
#define ASSERT_IN(a)
Definition: types.h:82
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:106
#define tFlag
Definition: types.h:14