1 #ifndef CORE_WritingFile_H 2 #define CORE_WritingFile_H 56 inline static SP::CORE_WritingFile
New(){
90 if (mF!=
null)
return mF->tellp();
120 throw CORE_Exception(
"common/core",
"CORE_WritingFile::getStream()",
121 "impossible to write in file because the file is not opened");
138 "impossible to write in file because the file is not opened");
virtual tBoolean moveTo(const tULInt &index)
move the current index position of the file to index
Definition: CORE_WritingFile.h:98
ofstream & getStream()
get the stream
Definition: CORE_WritingFile.h:118
virtual tBoolean translate(const tLInt &dx)
translate the current index position of the file
Definition: CORE_WritingFile.h:111
virtual ~CORE_WritingFile(void)
destroy a CORE_File
Definition: CORE_WritingFile.cpp:10
virtual void close()
close the file
Definition: CORE_WritingFile.cpp:81
void setLength(const tULInt &l)
set the length of the file
Definition: CORE_File.h:98
virtual tBoolean open(const tString &fileName)
open file fileName for writing
Definition: CORE_WritingFile.cpp:20
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
#define tBoolean
Definition: types.h:139
#define tLInt
Definition: types.h:42
CORE_WritingFile()
build a CORE_File
Definition: CORE_WritingFile.cpp:5
#define null
Definition: types.h:144
ostream & operator<<(const T &obj)
writing operator
Definition: CORE_WritingFile.h:135
DEFINE_SPTR(CORE_WritingFile)
#define tULInt
Definition: types.h:39
virtual tBoolean isEndOfFile() const
test if the cursor is at the end of file
Definition: CORE_WritingFile.h:127
ofstream * mF
Definition: CORE_WritingFile.h:26
this class describes the exceptions raised for CORE package
Definition: CORE_Exception.h:15
#define tString
Definition: types.h:135
static SP::CORE_WritingFile New()
create a CORE_out class
Definition: CORE_WritingFile.h:56
virtual tULInt getCurrentIndex() const
get the current index of the file
Definition: CORE_WritingFile.h:89
this class describes a writing file
Definition: CORE_WritingFile.h:17
tBoolean append(const tString &fileName)
open file fileName for appending
Definition: CORE_WritingFile.cpp:44
SP_OBJECT(CORE_WritingFile)
const tULInt & getLength() const
get the length of the file
Definition: CORE_File.h:91
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:141