#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
    //   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 * =ap242_managed_model_based_3d_engineering_mim_lf::t_tuple_space );
    //  part 1
    SdaiTuple_space( const SdaiProduct_space_ptr&,
                     const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_tuple_space );
    SdaiTuple_space( const SdaiExtended_tuple_space_ptr&,
                     const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_tuple_space );
    virtual ~SdaiTuple_space();

    //  part 2
    operator SdaiProduct_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 );


    //  part 4
    SdaiTuple_space& operator =( const SdaiProduct_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 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 * =ap242_managed_model_based_3d_engineering_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
