66       bool p_GetLine(QString &line, 
bool chkComment);
    73       TextFile(
const QString &filename, 
const char *openmode = 
"input",
    74                const char *extension = 
"");
    77       TextFile(
const   char *filename, 
const char *openmode,
    78                std::vector<QString> &lines,
    79                const int &maxLinesToReadWrite = 0,
    80                const bool skipComments = 
true);
    82                const char *openmode, std::vector<QString> &lines,
    83                const int &maxLinesToReadWrite = 0,
    84                const bool skipComments = 
true);
    86                const char *openmode, QString *lines,
    87                const int &maxLinesToReadWrite, 
const bool skipComments = 
true);
    89                const char *openmode, QString *lines,
    90                const int &maxLinesToReadWrite, 
const bool skipComments = 
true);
    94       void Open(
const QString &filename, 
const char *openmode = 
"input",
    95                 const char *extension = 
"");
    96       void Open(
const char *filename, 
const char *openmode = 
"input",
    97                 const char *extension = 
"");
    99       bool OpenChk(
bool bailIfNotOpen = 
false);
   104       void GetFile(std::vector<QString> &lines, 
   105                    const int &maxLinesToRead = 0, 
   106                    const bool skipComments = 
true);
   107       void GetFile(QString *lines, 
const int &maxLinesToRead, 
   108                    const bool skipComments = 
true);
   110       void PutFile(std::vector<QString> &lines, 
   111                    const int &maxLinesToWrite = 0);
   112       void PutFile(
const QString *lines, 
const int &maxLinesToWrite);
   114       bool GetLine(QString &line, 
const bool skipComments = 
true);
   117       bool GetLine(
const bool skipComments = 
true);
   120       void PutLine(
const QString &line);
   121       void PutLine(
const char *line = 
"");
   126       QString GetComment();
   127       QString GetNewLine();
   129       void SetComment(
const char *commentString = 
"#");
   130       void SetNewLine(
const char *newLineString = 
"\n");
   132       int LineCount(
const int &maxLinesToRead = 0);
   133       std::streamsize 
Size();
 QString p_filename
FileName of the opened file. 
 
QString p_commentString
'comment' string used by GetLine and PutLineComment 
 
std::streamsize Size()
Counts number of bytes in file. 
 
void SetComment(const char *commentString="#")
Sets the 'comment' string. 
 
void Open(const QString &filename, const char *openmode="input", const char *extension="")
Opens a text file. 
 
int p_openmode
openmode of file: Input, Output, Overwrite, Append 
 
void Rewind()
Sets Read / Write pointer to begining of opened file. 
 
void Close()
Closes file. Called automatically by TextFile destructor. 
 
TextFile()
Constructs an empty TextFile object. 
 
bool GetLineNoFilter()
Gets next NON-COMMENT line from file. 
 
void SetNewLine(const char *newLineString="\)
Sets the 'newline' string. 
 
QString p_newLineString
'newline' string used by PutLine and PutLineComment 
 
int LineCount(const int &maxLinesToRead=0)
Counts number of lines in file. 
 
bool GetLine(QString &line, const bool skipComments=true)
Gets next line from file. 
 
Provides access to sequential ASCII stream I/O. 
 
~TextFile()
Closes file (if still open). Destroys the TextFile object. 
 
void PutLine(const QString &line)
Writes string to file and appends a 'newline' string. 
 
Namespace for ISIS/Bullet specific routines. 
 
void PutLineComment(const QString &line)
Writes string to file, prepends a 'comment' string and appends a 'newline' string. 
 
bool p_GetLine(QString &line, bool chkComment)
Gets next line from file. 
 
std::fstream p_stream
File stream handle.