Open CASCADE Technology
6.5.4
|
This class defines a lexicon useful to analyse and
recognize the different key words included in a
sentence. The lexicon is stored in a sequence of
tokens.
#include <Units_UnitsLexicon.hxx>
Public Member Functions | |
Units_UnitsLexicon () | |
Returns an empty instance of UnitsLexicon | |
void | Creates (const Standard_CString afilename1, const Standard_CString afilename2, const Standard_Boolean amode=Standard_True) |
Reads the files <afilename1> and <afilename2> to create a sequence of tokens stored in <thesequenceoftokens>. | |
TCollection_AsciiString | FileName2 () const |
Returns in a AsciiString from TCollection the name of the file. | |
virtual Standard_Boolean | UpToDate () const |
Returns true if the file has not changed since the creation of the Lexicon object. Returns false otherwise. | |
virtual void | Dump () const |
Useful for debugging. |
void Units_UnitsLexicon::Creates | ( | const Standard_CString | afilename1, |
const Standard_CString | afilename2, | ||
const Standard_Boolean | amode = Standard_True |
||
) |
virtual void Units_UnitsLexicon::Dump | ( | ) | const [virtual] |
Reimplemented from Units_Lexicon.
virtual Standard_Boolean Units_UnitsLexicon::UpToDate | ( | ) | const [virtual] |
Reimplemented from Units_Lexicon.