#ifndef  TYPE_SDAIMATHS_SPACE_OR_FUNCTION_H
#define  TYPE_SDAIMATHS_SPACE_OR_FUNCTION_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_space_or_function
class SC_SCHEMA_EXPORT SdaiMaths_space_or_function  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   MATHS_SPACE    --  sdaiINSTANCE
    //   MATHS_FUNCTION    --  sdaiINSTANCE
       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_space_or_function( const SelectTypeDescriptor * =engineering_properties_schema::t_maths_space_or_function );
    //  part 1
    SdaiMaths_space_or_function( const SdaiMaths_space_ptr&,
                                 const SelectTypeDescriptor * =engineering_properties_schema::t_maths_space_or_function );
    SdaiMaths_space_or_function( const SdaiMaths_function_ptr&,
                                 const SelectTypeDescriptor * =engineering_properties_schema::t_maths_space_or_function );
    virtual ~SdaiMaths_space_or_function();

    //  part 2
    operator SdaiMaths_space_ptr();
    operator SdaiMaths_function_ptr();

    //  part 3

    //  part 4
    SdaiMaths_space_or_function& operator =( const SdaiMaths_space_ptr& );
    SdaiMaths_space_or_function& operator =( const SdaiMaths_function_ptr& );
    // not in SDAI
    SdaiMaths_space_or_function& ShallowCopy ( const SdaiMaths_space_or_function& );

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

    //  part 5
    Logical IsMaths_space() const;
    Logical IsMaths_function() const;

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

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

inline SDAI_Select * create_SdaiMaths_space_or_function () { return new SdaiMaths_space_or_function; }
typedef SdaiMaths_space_or_function * SdaiMaths_space_or_functionH;
typedef SdaiMaths_space_or_function_ptr SdaiMaths_space_or_function_var;


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

  public:
    SdaiMaths_space_or_function_agg( SelectTypeDescriptor * =engineering_properties_schema::t_maths_space_or_function );
    ~SdaiMaths_space_or_function_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiMaths_space_or_function( sel_type )); }
};
inline STEPaggregate * create_SdaiMaths_space_or_function_agg () { return new SdaiMaths_space_or_function_agg; }
typedef SdaiMaths_space_or_function_agg_ptr SdaiMaths_space_or_function_agg_var;

/////  END SELECT TYPE maths_space_or_function

void init_SdaiMaths_space_or_function(Registry& reg);

#endif
