#ifndef  TYPE_SDAISHAPE_MODEL_H
#define  TYPE_SDAISHAPE_MODEL_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 SdaiShape_model
class SC_SCHEMA_EXPORT SdaiShape_model  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   CONSTRUCTIVE_GEOMETRY_REPRESENTATION    --  sdaiINSTANCE
    //   SHAPE_REPRESENTATION    --  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
    SdaiShape_model( const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_shape_model );
    //  part 1
    SdaiShape_model( const SdaiConstructive_geometry_representation_ptr&,
                     const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_shape_model );
    SdaiShape_model( const SdaiShape_representation_ptr&,
                     const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_shape_model );
    virtual ~SdaiShape_model();

    //  part 2
    operator SdaiConstructive_geometry_representation_ptr();
    operator SdaiShape_representation_ptr();

    //  part 3
        SdaiRepresentation_context_ptr_c context_of_items_() const;
        SdaiRepresentation_context_ptr   context_of_items_();
        void context_of_items_( const SdaiRepresentation_context_ptr x );

        EntityAggregate_ptr_c items_() const;
        EntityAggregate_ptr   items_();
        void items_( const EntityAggregate_ptr x );

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


    //  part 4
    SdaiShape_model& operator =( const SdaiConstructive_geometry_representation_ptr& );
    SdaiShape_model& operator =( const SdaiShape_representation_ptr& );
    // not in SDAI
    SdaiShape_model& ShallowCopy ( const SdaiShape_model& );

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

    //  part 5
    Logical IsConstructive_geometry_representation() const;
    Logical IsShape_representation() const;

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

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

inline SDAI_Select * create_SdaiShape_model () { return new SdaiShape_model; }
typedef SdaiShape_model * SdaiShape_modelH;
typedef SdaiShape_model_ptr SdaiShape_model_var;


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

  public:
    SdaiShape_model_agg( SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_shape_model );
    ~SdaiShape_model_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiShape_model( sel_type )); }
};
inline STEPaggregate * create_SdaiShape_model_agg () { return new SdaiShape_model_agg; }
typedef SdaiShape_model_agg_ptr SdaiShape_model_agg_var;

/////  END SELECT TYPE shape_model

void init_SdaiShape_model(Registry& reg);

#endif
