#ifndef  TYPE_SDAITUPLE_SPACE_H
#define  TYPE_SDAITUPLE_SPACE_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 SdaiTuple_space
class SC_SCHEMA_EXPORT SdaiTuple_space  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   PRODUCT_SPACE    --  sdaiSELECT
    //   MESH_DERIVED_MATHS_SPACE    --  sdaiINSTANCE
    //   EXTENDED_TUPLE_SPACE    --  sdaiINSTANCE
       SdaiProduct_space _sdaiproduct_space;
       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
    SdaiTuple_space( const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_tuple_space );
    //  part 1
    SdaiTuple_space( const SdaiProduct_space_ptr&,
                     const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_tuple_space );
    SdaiTuple_space( const SdaiMesh_derived_maths_space_ptr&,
                     const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_tuple_space );
    SdaiTuple_space( const SdaiExtended_tuple_space_ptr&,
                     const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_tuple_space );
    virtual ~SdaiTuple_space();

    //  part 2
    operator SdaiProduct_space_ptr();
    operator SdaiMesh_derived_maths_space_ptr();
    operator SdaiExtended_tuple_space_ptr();

    //  part 3
        SdaiMaths_space_ptr_c extender_() const;
        SdaiMaths_space_ptr   extender_();
        void extender_( const SdaiMaths_space_ptr x );

        SdaiTuple_space_ptr_c base_() const;
        SdaiTuple_space_ptr   base_();
        void base_( const SdaiTuple_space_ptr x );

  const SdaiMesh_maths_space_type_var   kind_() const;
        SdaiMesh_maths_space_type_var   kind_();
        void kind_( const SdaiMesh_maths_space_type_var x );

        SdaiMesh_ptr_c the_mesh_() const;
        SdaiMesh_ptr   the_mesh_();
        void the_mesh_( const SdaiMesh_ptr x );

  const SdaiIdentifier   id_() const;
        SdaiIdentifier   id_();
        void id_( const SdaiIdentifier x );

  const SdaiLabel   name_() const;
        SdaiLabel   name_();
        void name_( const SdaiLabel x );

  const SdaiText   description_() const;
        SdaiText   description_();
        void description_( const SdaiText x );


    //  part 4
    SdaiTuple_space& operator =( const SdaiProduct_space_ptr& );
    SdaiTuple_space& operator =( const SdaiMesh_derived_maths_space_ptr& );
    SdaiTuple_space& operator =( const SdaiExtended_tuple_space_ptr& );
    // not in SDAI
    SdaiTuple_space& ShallowCopy ( const SdaiTuple_space& );

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

    //  part 5
    Logical IsProduct_space() const;
    Logical IsMesh_derived_maths_space() const;
    Logical IsExtended_tuple_space() const;

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

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

inline SDAI_Select * create_SdaiTuple_space () { return new SdaiTuple_space; }
typedef SdaiTuple_space * SdaiTuple_spaceH;
typedef SdaiTuple_space_ptr SdaiTuple_space_var;


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

  public:
    SdaiTuple_space_agg( SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_tuple_space );
    ~SdaiTuple_space_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiTuple_space( sel_type )); }
};
inline STEPaggregate * create_SdaiTuple_space_agg () { return new SdaiTuple_space_agg; }
typedef SdaiTuple_space_agg_ptr SdaiTuple_space_agg_var;

/////  END SELECT TYPE tuple_space

void init_SdaiTuple_space(Registry& reg);

#endif
