Developer Documentation
Centre for Vision, Speech & Signal Processing
USER IN NAMESPACE AMMA TREE ROOT AMMA SEARCH AMMA HOME
 

  PUBLIC
TextPFileC::TextPFileC(void)
TextPFileC::TextPFileC(const FilenameC &)
TextPFileC::TextPFileC(const StringC &,BooleanT,BooleanT)
TextPFileC::TextPFileC(istream &)
TextPFileC::operator=(const TextPFileC &)
TextPFileC::TextPFileC(const TextPFileC &)
TextPFileC::Load(const FilenameC &)
TextPFileC::AppendFile(const FilenameC &)
TextPFileC::Load(istream &)
TextPFileC::Append(istream &)
TextPFileC::Save(void)
TextPFileC::SetFilename(const StringC &)
TextPFileC::SaveAs(const StringC &)
TextPFileC::Filename(void)
TextPFileC::Append(const StringC &,BooleanT)
TextPFileC::AppendText(const StringC &,BooleanT)
TextPFileC::operator+=(const StringC &)
TextPFileC::IsReadonly(void) const
TextPFileC::NoLines(void) const
TextPFileC::SetRenumber(void)
TextPFileC::SetModified(void)
TextPFileC::Empty(void)
TextPFileC::Dump(ostream &) const
TextPFileC::Buff(void)
TextPFileC::IsLoaded(void) const
TextPFileC::FindLineMatch(const StringC &)
TextPFileC::operator[](IndexT)
TextPFileC::IsModified(void) const
TextPFileC::SetReadonly(BooleanT)
TextPFileC::TextPFileC(TextPBuffC &)
TextPFileC
 
Text File, for use in text processing.
 
include "amma/TxtPFile.hh"
User Level:Default
Library:TextProc
Example:exDPSplit.cc
Section:Basic Types.Text Text Processing
In Scope:std

Comments:
This is a BIG object!

Parent Classes: Derived Classes: Variables:
FilenameC filename;
Name of file.

BooleanT Renumber;
Need to renumber

TextPBuffRefC buff;

Methods:
TextPFileC()
Default constructor.

TextPFileC(const FilenameC & Filename)
Constructor from a file.

TextPFileC(const StringC & text,BooleanT noFinalRet,BooleanT concat = false)
Construct from a string.
concat, if true don't split lines, otherwise do.

TextPFileC(istream & fin)
Constructor from a stream.

const TextPFileC & operator=(const TextPFileC &)
Assigment.

TextPFileC(const TextPFileC & TB)
Copy constructor.

BooleanT Load(const FilenameC & Filename)
Try and load a file.

BooleanT AppendFile(const FilenameC & Filename)
Append a file to the end of this one.

BooleanT Load(istream & instrm)
Load buffer from a stream.

BooleanT Append(istream & instrm)
Append a stream to the end of this file.

BooleanT Save()
Try and save this file.

BooleanT SetFilename(const StringC & filename)
Set filename to use.

BooleanT SaveAs(const StringC & Filename)
Try and save this file as another name.

StringC Filename()
Get the name of the file.

TextPFileBaseC::LineNoT Append(const StringC & text,BooleanT noFinalRet = false)
Append a SINGLE line of text to file.
returns LineNo or -1 if failed.

TextPFileBaseC::LineNoT AppendText(const StringC & text,BooleanT noFinalRet = false)
Append some text to the file.
returns first LineNo or -1 if failed.

BooleanT operator+=(const StringC & text)
Append a line of text to the end of the file.

BooleanT IsReadonly() const
Is readonly ?

TextPFileBaseC::LineNoT NoLines() const
Return number of lines in buffer.

void SetRenumber()
Set renumber flag.

void SetModified()
Set renumber flag.

void Empty()
Empty all contents, set name to noname

void Dump(ostream & strm) const
Dump to stdout.

TextPBuffC & Buff()
Access text buffer.

BooleanT IsLoaded() const
Have file loaded into memory ?

IntT FindLineMatch(const StringC & str)
Find a line begining with string 'str'.
returns line no otherwise -1.

StringC & operator[](IndexT x)
Access a line in the file.

BooleanT IsModified() const
Has buffer been modified ?

void SetReadonly(BooleanT newval)
Set readonly flag for file.

TextPFileC(TextPBuffC & buff)
Construct from a buffer.


Programmer:Charles Galambos, Documentation by CxxDoc: Tue Mar 20 10:49:27 2001