class LineFileModifier

Modify a text file structured by lines (example : Makefile)

Public Methods

LineFileModifier(const String& nameFile, ListString *>& markList, const String& commentSymbols) throw(Exception)
virtual ~LineFileModifier() throw()
virtual void save() throw(Exception)
virtual void save(const String& nameFile) throw(Exception)
virtual void place() throw()
virtual bool walk() throw()
virtual bool walkInvers() throw()
virtual const String* current() const throw(Exception)
virtual bool after(List< const String * >& afterLines) throw()
go begin to end (to find s and place after)
virtual bool after(const String& afterLines) throw()
go begin to end (to find s and place after)
virtual bool before(List< const String * >& beforeLines) throw()
go end to begin (to find s and place before)
virtual bool before(const String& beforeLines) throw()
go end to begin (to find s and place before)
virtual void insert(ListString*>& lines) throw()
virtual void insert(const String& line) throw()
virtual void insertRaw(const String& line) throw()
virtual void suppress() throw()
suppress all mark and body inserted with mark
virtual void suppressLine() throw()
raw suppress

Protected Fields

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

Documentation

Modify a text file structured by lines (example : Makefile). The modifications can be suppressed. Very useful !
List < const String * > * mark
list of the lines added when a line is added

const String* commentMark

List < const String * > list
list of the lines contained by the file

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

LineFileModifier(const String& nameFile, ListString *>& markList, const String& commentSymbols) throw(Exception)

virtual ~LineFileModifier() throw()

virtual void save() throw(Exception)

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

virtual void place() throw()

virtual bool walk() throw()

virtual bool walkInvers() throw()

virtual const String* current() const throw(Exception)

virtual bool after(List< const String * >& afterLines) throw()
go begin to end (to find s and place after)

virtual bool after(const String& afterLines) throw()
go begin to end (to find s and place after)

virtual bool before(List< const String * >& beforeLines) throw()
go end to begin (to find s and place before)

virtual bool before(const String& beforeLines) throw()
go end to begin (to find s and place before)

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

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

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

virtual void suppress() throw()
suppress all mark and body inserted with mark

virtual void suppressLine() throw()
raw suppress


This class has no child classes.
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