Open CASCADE Technology  7.1.0.beta
Public Member Functions

Units_Sentence Class Reference

This class describes all the methods to create and compute an expression contained in a string. More...

#include <Units_Sentence.hxx>

Inheritance diagram for Units_Sentence:
Inheritance graph
[legend]

Public Member Functions

 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>. More...
 
void SetConstants ()
 For each constant encountered, sets the value. More...
 
Handle< Units_TokensSequence > Sequence () const
 Returns <thesequenceoftokens>. More...
 
void Sequence (const Handle< Units_TokensSequence > &asequenceoftokens)
 Sets the field <thesequenceoftokens> to <asequenceoftokens>. More...
 
Handle< Units_TokenEvaluate ()
 Computes and returns in a token the result of the expression. More...
 
Standard_Boolean IsDone () const
 Return True if number of created tokens > 0 (i.e creation of sentence is succesfull) More...
 
void Dump () const
 Useful for debugging. More...
 

Detailed Description

This class describes all the methods to create and compute an expression contained in a string.

Constructor & Destructor Documentation

Units_Sentence::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>.

Member Function Documentation

void Units_Sentence::Dump ( ) const

Useful for debugging.

Handle< Units_Token > Units_Sentence::Evaluate ( )

Computes and returns in a token the result of the expression.

Standard_Boolean Units_Sentence::IsDone ( ) const

Return True if number of created tokens > 0 (i.e creation of sentence is succesfull)

Handle< Units_TokensSequence > Units_Sentence::Sequence ( ) const

Returns <thesequenceoftokens>.

void Units_Sentence::Sequence ( const Handle< Units_TokensSequence > &  asequenceoftokens)

Sets the field <thesequenceoftokens> to <asequenceoftokens>.

void Units_Sentence::SetConstants ( )

For each constant encountered, sets the value.


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