1 // Copyright: Matra-Datavision 1992
2 // File: ExprIntrp_GenRel.cxx
3 // Created: Tue Aug 18 11:33:52 1992
4 // Author: Arnaud BOUZY
7 #include <ExprIntrp_GenRel.ixx>
8 #include <ExprIntrp.hxx>
9 #include <ExprIntrp_yaccanal.hxx>
10 #include <Standard_NoSuchObject.hxx>
12 ExprIntrp_GenRel::ExprIntrp_GenRel ()
14 done = Standard_False;
17 Handle( ExprIntrp_GenRel ) ExprIntrp_GenRel::Create()
19 return new ExprIntrp_GenRel();
22 void ExprIntrp_GenRel::Process (const TCollection_AsciiString& str)
24 Handle(ExprIntrp_GenRel) me = this;
25 done = Standard_False;
26 if (ExprIntrp::Parse(me,str)) {
27 if (!ExprIntrp_Recept.IsRelStackEmpty()) {
28 myRelation = ExprIntrp_Recept.PopRelation();
40 Standard_Boolean ExprIntrp_GenRel::IsDone() const
45 Handle(Expr_GeneralRelation) ExprIntrp_GenRel::Relation () const
48 Standard_NoSuchObject::Raise();