ToolMap
Loading...
Searching...
No Matches
TextParserTxtFile Class Reference

for parsing text based file More...

#include <textparser.h>

Inheritance diagram for TextParserTxtFile:
TextParser TextParserTxtFileComma TextParserTxtFileTab

Public Member Functions

 TextParserTxtFile (const wxString &filename)
 
 TextParserTxtFile (const wxFileName &filename)
 
virtual bool OpenParseFile (bool bCreate=FALSE)
 
virtual bool CloseParseFile ()
 
virtual int ParseNextLine (wxArrayString &myValues)
 
virtual bool WriteNextLine (const wxArrayString &myValues)
 
virtual bool CheckFileToParse ()
 Check that the file has the correct separator.
 
- Public Member Functions inherited from TextParser
wxString GetParserType ()
 
void SetParseFileName (const wxString &myFileName)
 
void SetParseFileName (const wxFileName &myFileName)
 
int GetActualLineNumber ()
 
void InitActualLineNumber ()
 
void IncrementActualLineNumber (int iIncrement=1)
 
int GetLineCount ()
 
void SetNumberOfFields (int inbfield)
 Set the number of fields we are looking for.
 

Protected Member Functions

virtual void InitParserValue ()
 
- Protected Member Functions inherited from TextParser
bool CheckParseFileExist ()
 

Protected Attributes

wxTextFile * m_File
 
wxString m_TextSeparator
 
bool m_WriteMode
 
- Protected Attributes inherited from TextParser
wxString m_ParseFileType
 
wxFileName m_ParseFileName
 
int m_LineCount
 
int m_NbFieldToParse
 

Additional Inherited Members

- Static Public Member Functions inherited from TextParser
static wxString GetAllSupportedParserWildCards ()
 
static TextParserCreateParserBasedOnType (const int &textparser_index, const wxFileName &filename)
 
- Static Protected Attributes inherited from TextParser
static int m_iActualLine = 0
 

Detailed Description

for parsing text based file

It reads a simple textual file and parse the values found on a line by line basis.

Author
Lucien Schreiber (c) CREALP 2007
Date
11 December 2007

Member Function Documentation

◆ CheckFileToParse()

bool TextParserTxtFile::CheckFileToParse ( )
virtual

Check that the file has the correct separator.

Note
open the file first ! and specify the number of fields we are looking for using the TextParser::SetNumberOfFields() function.
Author
Lucien Schreiber (c) CREALP 2008
Date
19 May 2008

Reimplemented from TextParser.

◆ CloseParseFile()

bool TextParserTxtFile::CloseParseFile ( )
virtual

Reimplemented from TextParser.

◆ OpenParseFile()

bool TextParserTxtFile::OpenParseFile ( bool  bCreate = FALSE)
virtual

Reimplemented from TextParser.

◆ ParseNextLine()

int TextParserTxtFile::ParseNextLine ( wxArrayString &  myValues)
virtual

Reimplemented from TextParser.

◆ WriteNextLine()

bool TextParserTxtFile::WriteNextLine ( const wxArrayString &  myValues)
virtual

Reimplemented from TextParser.


The documentation for this class was generated from the following files: