#ifndef  TYPE_SDAIMATHS_EXPRESSION_H
#define  TYPE_SDAIMATHS_EXPRESSION_H

// This file was generated by exp2cxx,
// 0.8.1.
// You probably don't want to edit it since your modifications
// will be lost if exp2cxx is used to regenerate it.


//////////  SELECT TYPE SdaiMaths_expression
class SC_SCHEMA_EXPORT SdaiMaths_expression  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   ATOM_BASED_VALUE    --  sdaiSELECT
    //   MATHS_TUPLE    --  LIST_TYPE
    //   GENERIC_EXPRESSION    --  sdaiINSTANCE
       SdaiAtom_based_value _sdaiatom_based_value;
       SdaiMaths_value_agg_ptr _sdaimaths_value_agg;
       SDAI_Application_instance_ptr _app_inst;

  public:
    virtual const TypeDescriptor * AssignEntity (SDAI_Application_instance * se);
    virtual SDAI_Select * NewSelect ();

    virtual BASE_TYPE ValueType() const;


// STEP Part 21
    virtual void STEPwrite_content (ostream& out =std::cout,
                    const char *currSch =0) const;
    virtual void STEPwrite_verbose (ostream& out =std::cout,
                    const char *currSch =0) const;
    virtual Severity STEPread_content (istream& in =cin,
        InstMgrBase * instances =0, const char *utype =0,
        int addFileId =0, const char *currSch =0);
    virtual Severity StrToVal_content (const char *,
        InstMgrBase * instances =0);

// STEP Part 22:  SDAI

// constructors
    SdaiMaths_expression( const SelectTypeDescriptor * =engineering_properties_schema::t_maths_expression );
    //  part 1
    SdaiMaths_expression( const SdaiAtom_based_value_ptr&,
                          const SelectTypeDescriptor * =engineering_properties_schema::t_maths_expression );
    SdaiMaths_expression( const SdaiMaths_tuple_ptr&,
                          const SelectTypeDescriptor * =engineering_properties_schema::t_maths_expression );
    SdaiMaths_expression( const SdaiGeneric_expression_ptr&,
                          const SelectTypeDescriptor * =engineering_properties_schema::t_maths_expression );
    virtual ~SdaiMaths_expression();

    //  part 2
    operator SdaiAtom_based_value_ptr();
    operator SdaiMaths_tuple_ptr();
    operator SdaiGeneric_expression_ptr();

    //  part 3

    //  part 4
    SdaiMaths_expression& operator =( const SdaiAtom_based_value_ptr& );
    SdaiMaths_expression& operator =( const SdaiMaths_tuple_ptr& );
    SdaiMaths_expression& operator =( const SdaiGeneric_expression_ptr& );
    // not in SDAI
    SdaiMaths_expression& ShallowCopy ( const SdaiMaths_expression& );

#ifdef COMPILER_DEFINES_OPERATOR_EQ
#else
    SdaiMaths_expression& operator =( SdaiMaths_expression * const & );
    SDAI_Select& operator =( const SDAI_Select& );
#endif

    //  part 5
    Logical IsAtom_based_value() const;
    Logical IsMaths_tuple() const;
    Logical IsGeneric_expression() const;

    //  part 6 ... UnderlyingTypeName () implemented in SDAI_Select class ...

    //  part 7 ... NONE    only for complex selects...
};

inline SDAI_Select * create_SdaiMaths_expression () { return new SdaiMaths_expression; }
typedef SdaiMaths_expression * SdaiMaths_expressionH;
typedef SdaiMaths_expression_ptr SdaiMaths_expression_var;


class SdaiMaths_expression_agg : public SelectAggregate {
  protected:
    SelectTypeDescriptor *sel_type;

  public:
    SdaiMaths_expression_agg( SelectTypeDescriptor * =engineering_properties_schema::t_maths_expression );
    ~SdaiMaths_expression_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiMaths_expression( sel_type )); }
};
inline STEPaggregate * create_SdaiMaths_expression_agg () { return new SdaiMaths_expression_agg; }
typedef SdaiMaths_expression_agg_ptr SdaiMaths_expression_agg_var;

/////  END SELECT TYPE maths_expression

void init_SdaiMaths_expression(Registry& reg);

#endif
