class TextFileModifier

Powerful class wich is able to modify a text file, and suppress the modifications if asked

Inheritance:


Public Methods

TextFileModifier(const String& nameFile, ListString *>& markList, bool createFile=false) throw(Exception)
virtual ~TextFileModifier() throw()
virtual void save() throw(Exception)
virtual void save(const String& nameFile) throw(Exception)
virtual void place() throw()
virtual bool walkIgnoring() throw()
virtual bool walkInversIgnoring() throw()
virtual char current() const throw(Exception)
virtual bool after(const String& s) throw()
go begin to end (to find s and place after - on the final char of s)
virtual bool before(const String& s) throw()
go end to begin (to find s and place before - before the initial char of s)
virtual bool after(List< const String * >& l) throw()
go begin to end (to find s and place after - on the final char of s)
virtual bool before(List< const String * >& l) throw()
go end to begin (to find s and place before - before the initial char of s)
virtual void insert(ListString*>& lines) throw()
virtual void insert(const String& line) throw()
virtual void jumpBlank() throw()
virtual void jumpBlankInvers() throw()
virtual String* nextWord() throw()
return deleted by caller
virtual void keepPosition() throw()
virtual void recallPosition() throw(Exception)
virtual void limit() throw()
put a limit not outrunnable, one limit only can be put
virtual void unlimit() throw()
virtual void goEndLine() throw()
bool findCloseBrace() throw()

Protected Classes

enum Sens
struct SensChar
char c
Sens s
bool added

Protected Fields

List < SensChar * > list
char contained by the file
List < const String * > * mark
list of the lines added when a line is added
const String* name
name of the file, used for save()
List < int > listPosition

Protected Methods

virtual void insertRaw(const String& line) throw()
virtual bool walk() throw()
virtual bool walkInvers() throw()
virtual void reparse() throw()

Private Fields

int cptWalk
int minLimit
int maxLimit
int tmpLimit

Documentation

Powerful class wich is able to modify a text file, and suppress the modifications if asked. I am happy, it works ! It was difficult !
enum Sens

struct SensChar

char c

Sens s

bool added

List < SensChar * > list
char contained by the file

List < const String * > * mark
list of the lines added when a line is added

const String* name
name of the file, used for save()

int cptWalk

int minLimit

int maxLimit

int tmpLimit

List < int > listPosition

virtual void insertRaw(const String& line) throw()

virtual bool walk() throw()

virtual bool walkInvers() throw()

virtual void reparse() throw()

TextFileModifier(const String& nameFile, ListString *>& markList, bool createFile=false) throw(Exception)

virtual ~TextFileModifier() throw()

virtual void save() throw(Exception)

virtual void save(const String& nameFile) throw(Exception)

virtual void place() throw()

virtual bool walkIgnoring() throw()

virtual bool walkInversIgnoring() throw()

virtual char current() const throw(Exception)

virtual bool after(const String& s) throw()
go begin to end (to find s and place after - on the final char of s)

virtual bool before(const String& s) throw()
go end to begin (to find s and place before - before the initial char of s)

virtual bool after(List< const String * >& l) throw()
go begin to end (to find s and place after - on the final char of s)

virtual bool before(List< const String * >& l) throw()
go end to begin (to find s and place before - before the initial char of s)

virtual void insert(ListString*>& lines) throw()

virtual void insert(const String& line) throw()

virtual void jumpBlank() throw()

virtual void jumpBlankInvers() throw()

virtual String* nextWord() throw()
return deleted by caller

virtual void keepPosition() throw()

virtual void recallPosition() throw(Exception)

virtual void limit() throw()
put a limit not outrunnable, one limit only can be put

virtual void unlimit() throw()

virtual void goEndLine() throw()

bool findCloseBrace() throw()


Direct child classes:
HFileModifier
CCFileModifier
Author:
David FAUTHOUX

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de