OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    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:

    Public Member Functions

     Units_Sentence (const occ::handle< Units_Lexicon > &alexicon, const char *const astring)
     Createsand returns a Sentence, by analyzing the string <astring> with the lexicon <alexicon>.
    void SetConstants ()
     For each constant encountered, sets the value.
    occ::handle< NCollection_HSequence< occ::handle< Units_Token > > > Sequence () const
     Returns <thesequenceoftokens>.
    void Sequence (const occ::handle< NCollection_HSequence< occ::handle< Units_Token > > > &asequenceoftokens)
     Sets the field <thesequenceoftokens> to <asequenceoftokens>.
    occ::handle< Units_Token > Evaluate ()
     Computes and returns in a token the result of the expression.
    bool IsDone () const
     Return True if number of created tokens > 0 (i.e creation of sentence is successful).
    void Dump () const
     Useful for debugging.

    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::Units_Sentence ( const occ::handle< Units_Lexicon > & alexicon,
    const char *const astring )

    Createsand returns a Sentence, by analyzing the string <astring> with the lexicon <alexicon>.

    Member Function Documentation

    ◆ Dump()

    void Units_Sentence::Dump ( ) const

    Useful for debugging.

    ◆ Evaluate()

    occ::handle< Units_Token > Units_Sentence::Evaluate ( )

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

    ◆ IsDone()

    bool Units_Sentence::IsDone ( ) const

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

    ◆ Sequence() [1/2]

    occ::handle< NCollection_HSequence< occ::handle< Units_Token > > > Units_Sentence::Sequence ( ) const

    Returns <thesequenceoftokens>.

    ◆ Sequence() [2/2]

    void Units_Sentence::Sequence ( const occ::handle< NCollection_HSequence< occ::handle< Units_Token > > > & asequenceoftokens)

    Sets the field <thesequenceoftokens> to <asequenceoftokens>.

    ◆ SetConstants()

    void Units_Sentence::SetConstants ( )

    For each constant encountered, sets the value.


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