|
Open CASCADE Technology
6.5.4
|
This class describes all the methods to create and
compute an expression contained in a string.
#include <Units_Sentence.hxx>

Public Member Functions | |
| DEFINE_STANDARD_ALLOC | Units_Sentence (const Handle< Units_Lexicon > &alexicon, const Standard_CString astring) |
| Creates and returns a Sentence, by analyzing the string <astring> with the lexicon <alexicon>. | |
| void | SetConstants () |
| For each constant encountered, sets the value. | |
| Handle_Units_TokensSequence | Sequence () const |
| Returns <thesequenceoftokens>. | |
| void | Sequence (const Handle< Units_TokensSequence > &asequenceoftokens) |
| Sets the field <thesequenceoftokens> to <asequenceoftokens>. | |
| Handle_Units_Token | Evaluate () |
| Computes and returns in a token the result of the expression. | |
| Standard_Boolean | IsDone () const |
| Return True if number of created tokens > 0 (i.e creation of sentence is succesfull) | |
| void | Dump () const |
| Useful for debugging. | |
| DEFINE_STANDARD_ALLOC Units_Sentence::Units_Sentence | ( | const Handle< Units_Lexicon > & | alexicon, |
| const Standard_CString | astring | ||
| ) |
| void Units_Sentence::Dump | ( | ) | const |
| Handle_Units_Token Units_Sentence::Evaluate | ( | ) |
| Standard_Boolean Units_Sentence::IsDone | ( | ) | const |
| Handle_Units_TokensSequence Units_Sentence::Sequence | ( | ) | const |
| void Units_Sentence::Sequence | ( | const Handle< Units_TokensSequence > & | asequenceoftokens | ) |
1.8.0