// This file is generated by WOK (CPPExt). // Please do not edit this file; modify original file instead. // The copyright and license terms as defined for the original file apply to // this header file considered to be the "object code" form of the original source. #ifndef _Units_Lexicon_HeaderFile #define _Units_Lexicon_HeaderFile #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_DefineHandle_HeaderFile #include #endif #ifndef _Handle_Units_Lexicon_HeaderFile #include #endif #ifndef _Handle_TCollection_HAsciiString_HeaderFile #include #endif #ifndef _Standard_Time_HeaderFile #include #endif #ifndef _Handle_Units_TokensSequence_HeaderFile #include #endif #ifndef _MMgt_TShared_HeaderFile #include #endif #ifndef _Standard_CString_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _Standard_Real_HeaderFile #include #endif class TCollection_HAsciiString; class Units_TokensSequence; class TCollection_AsciiString; //! 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.
class Units_Lexicon : public MMgt_TShared { public: //! Creates an empty instance of Lexicon.
Standard_EXPORT Units_Lexicon(); //! Reads the file to create a sequence of tokens
//! stored in .
Standard_EXPORT void Creates(const Standard_CString afilename) ; //! Returns the first item of the sequence of tokens.
Handle_Units_TokensSequence Sequence() const; //! Returns in a AsciiString from TCollection the name of the file.
Standard_EXPORT TCollection_AsciiString FileName() const; //! Returns true if the file has not changed since the
//! creation of the Lexicon object. Returns false
//! otherwise.
Standard_EXPORT virtual Standard_Boolean UpToDate() const; //! Adds to the lexicon a new token with , ,
//! as arguments. If there is already a token
//! with the field equal to , the
//! existing token is updated.
Standard_EXPORT void AddToken(const Standard_CString aword,const Standard_CString amean,const Standard_Real avalue) ; //! Useful for debugging.
virtual void Dump() const; DEFINE_STANDARD_RTTI(Units_Lexicon) protected: private: Handle_TCollection_HAsciiString thefilename; Standard_Time thetime; Handle_Units_TokensSequence thesequenceoftokens; }; #include // other Inline functions and methods (like "C++: function call" methods) #endif