#ifndef  TYPE_SDAIPRODUCT_SPACE_H
#define  TYPE_SDAIPRODUCT_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 SdaiProduct_space
class SC_SCHEMA_EXPORT SdaiProduct_space  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   UNIFORM_PRODUCT_SPACE    --  sdaiINSTANCE
    //   LISTED_PRODUCT_SPACE    --  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
    SdaiProduct_space( const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_product_space );
    //  part 1
    SdaiProduct_space( const SdaiUniform_product_space_ptr&,
                       const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_product_space );
    SdaiProduct_space( const SdaiListed_product_space_ptr&,
                       const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_product_space );
    virtual ~SdaiProduct_space();

    //  part 2
    operator SdaiUniform_product_space_ptr();
    operator SdaiListed_product_space_ptr();

    //  part 3
        EntityAggregate_ptr_c factors_() const;
        EntityAggregate_ptr   factors_();
        void factors_( const EntityAggregate_ptr x );

        SdaiPositive_integer   exponent_() const;
        void exponent_( const SdaiPositive_integer x );

        SdaiMaths_space_ptr_c base_() const;
        SdaiMaths_space_ptr   base_();
        void base_( const SdaiMaths_space_ptr x );


    //  part 4
    SdaiProduct_space& operator =( const SdaiUniform_product_space_ptr& );
    SdaiProduct_space& operator =( const SdaiListed_product_space_ptr& );
    // not in SDAI
    SdaiProduct_space& ShallowCopy ( const SdaiProduct_space& );

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

    //  part 5
    Logical IsUniform_product_space() const;
    Logical IsListed_product_space() const;

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

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

inline SDAI_Select * create_SdaiProduct_space () { return new SdaiProduct_space; }
typedef SdaiProduct_space * SdaiProduct_spaceH;
typedef SdaiProduct_space_ptr SdaiProduct_space_var;


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

  public:
    SdaiProduct_space_agg( SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_product_space );
    ~SdaiProduct_space_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiProduct_space( sel_type )); }
};
inline STEPaggregate * create_SdaiProduct_space_agg () { return new SdaiProduct_space_agg; }
typedef SdaiProduct_space_agg_ptr SdaiProduct_space_agg_var;

/////  END SELECT TYPE product_space

void init_SdaiProduct_space(Registry& reg);

#endif
