#include <DICParserBase.h>
Inherits DICScanner.
Inheritance diagram for DICParser:
This class represents a dictionary parser. This class utilizes flex/bison for syntax/semantic processing and stores the parsed data (dictionary blocks and tables) in a DicFile object.
DICParser::DICParser | ( | DicFile * | dicFileP, | |
DdlFile * | ddlFileP, | |||
bool | verbose = false | |||
) |
Constructs a dictionary parser.
[in] | dicFileP | - pointer to the DicFile object that the dictionary parser is to use to store the parsed data |
[in] | ddlFileP | - pointer to the DdlFile object that holds the DDL for the dictionary |
[in] | verbose | - optional parameter that indicates whether parsing logging should be turned on (if true) or off (if false). If verbose is not spefified, logging is turned off. |
ddlFileP must not be NULL
EmptyValueException | - if dicFileP is NULL | |
EmptyValueException | - if ddlFileP is NULL |
DICParser::~DICParser | ( | ) | [virtual] |
Destructs a dictionary parser by releasing all the used resources.
Not applicable |
None |
void DICParser::Parse | ( | const string & | fileName, | |
string & | diagnostics | |||
) |
Parses a dictionary file.
[in] | fileName | - relative or absolute name of the dictionary file that is to be parsed. |
[out] | diagnostics | - parsing result. If empty, parsing completed with no warnings or errors. If non-empty, there were parsing warnings and/or parsing errors. |
None |
void DICParser::Error | ( | const char * | ) |
Utility method, not part of users public API, and will soon be removed.
void DICParser::Clear | ( | ) |
Method, not currently part of users public API, and will soon be re-examined.
Reimplemented from DICScanner.
void DICParser::Reset | ( | ) |
Method, not currently part of users public API, and will soon be re-examined.
Reimplemented from DICScanner.
void DICParser::ProcessAssignments | ( | void | ) |
Utility method, not part of users public API, and will soon be removed.
void DICParser::ProcessOneAssignment | ( | void | ) |
Utility method, not part of users public API, and will soon be removed.
void DICParser::ProcessItemNameListLoop | ( | void | ) |
Utility method, not part of users public API, and will soon be removed.
void DICParser::ProcessItemNameListName | ( | void | ) |
Utility method, not part of users public API, and will soon be removed.
void DICParser::ProcessValueListItem | ( | void | ) |
Utility method, not part of users public API, and will soon be removed.
void DICParser::ProcessItemName | ( | void | ) |
Utility method, not part of users public API, and will soon be removed.
void DICParser::ProcessLoop | ( | void | ) |
Utility method, not part of users public API, and will soon be removed.
void DICParser::ProcessItemValue | ( | void | ) |
Utility method, not part of users public API, and will soon be removed.
void DICParser::ProcessLsItemValue | ( | void | ) |
Utility method, not part of users public API, and will soon be removed.
void DICParser::ProcessUnknownValue | ( | void | ) |
Utility method, not part of users public API, and will soon be removed.
void DICParser::ProcessMissingValue | ( | void | ) |
Utility method, not part of users public API, and will soon be removed.
void DICParser::ProcessSaveBegin | ( | void | ) |
Utility method, not part of users public API, and will soon be removed.
void DICParser::ProcessSaveEnd | ( | void | ) |
Utility method, not part of users public API, and will soon be removed.
void DICParser::ProcessDataBlockName | ( | void | ) |
Utility method, not part of users public API, and will soon be removed.
void DICParser::ProcessLoopDeclaration | ( | void | ) | [private] |
void DICParser::ProcessItemNameList | ( | void | ) | [private] |
void DICParser::ProcessValueList | ( | void | ) | [private] |
void DICParser::ProcessItemValuePair | ( | void | ) | [private] |
void DICParser::ProcessLoopDeclarationSave | ( | void | ) | [private] |
void DICParser::ProcessItemNameListSave | ( | void | ) | [private] |
void DICParser::ProcessValueListSave | ( | void | ) | [private] |
void DICParser::ProcessItemValuePairSave | ( | void | ) | [private] |
void DICParser::CheckDDL | ( | void | ) | [private] |
string DICParser::_uString [private] |
string DICParser::_mString [private] |
DicFile* DICParser::_fobj [private] |
ISTable* DICParser::_tbl [private] |
int DICParser::_afterLoop [private] |
DicFile* DICParser::_saveobj [private] |
ISTable* DICParser::_savetbl [private] |
ISTable* DICParser::_prevtbl [private] |
ISTable* DICParser::format [private] |
ISTable* DICParser::cattbl [private] |
ISTable* DICParser::itemtbl [private] |
DdlFile* DICParser::ddl [private] |
int DICParser::itemColIndex [private] |
int DICParser::catColIndex [private] |
int DICParser::colIndex2 [private] |
vector<string> DICParser::listcat [private] |
vector<string> DICParser::listitem [private] |
vector<string> DICParser::listitem2 [private] |
int DICParser::_nTablesInBlock [private] |
int DICParser::_curItemNo [private] |
int DICParser::_curValueNo [private] |
int DICParser::_numDataBlocks [private] |
int DICParser::_fieldListAlloc [private] |
int DICParser::_curRow [private] |
int DICParser::_curCol [private] |
vector<string> DICParser::_fieldList [private] |
string DICParser::_pBufValue [private] |
vector<string>* DICParser::_rowBuf [private] |
string DICParser::_tBufKeyword [private] |
string DICParser::_curCategoryName [private] |
string DICParser::_curDataBlockName [private] |
string DICParser::_prevDataBlockName [private] |
int DICParser::_nTablesInBlockSave [private] |
int DICParser::_curItemNoSave [private] |
int DICParser::_curValueNoSave [private] |
int DICParser::_numDataBlocksSave [private] |
int DICParser::_fieldListAllocSave [private] |
int DICParser::_curRowSave [private] |
int DICParser::_curColSave [private] |
vector<string> DICParser::_fieldListSave [private] |
vector<string>* DICParser::_rowBufSave [private] |
string DICParser::_curCategoryNameSave [private] |
string DICParser::_curDataBlockNameSave [private] |
string DICParser::_prevDataBlockNameSave [private] |
string DICParser::_tmpDataBlockNameSave [private] |
string DICParser::_tmpDataBlockNameSaveL [private] |
string DICParser::errorLog [private] |