#ifndef  TYPE_SDAISKETCH_TYPE_SELECT_H
#define  TYPE_SDAISKETCH_TYPE_SELECT_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 SdaiSketch_type_select
class SC_SCHEMA_EXPORT SdaiSketch_type_select  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   NEUTRAL_SKETCH_REPRESENTATION    --  sdaiINSTANCE
    //   POSITIONED_SKETCH    --  sdaiINSTANCE
    //   SUBSKETCH    --  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
    SdaiSketch_type_select( const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_sketch_type_select );
    //  part 1
    SdaiSketch_type_select( const SdaiNeutral_sketch_representation_ptr&,
                            const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_sketch_type_select );
    SdaiSketch_type_select( const SdaiPositioned_sketch_ptr&,
                            const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_sketch_type_select );
    SdaiSketch_type_select( const SdaiSubsketch_ptr&,
                            const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_sketch_type_select );
    virtual ~SdaiSketch_type_select();

    //  part 2
    operator SdaiNeutral_sketch_representation_ptr();
    operator SdaiPositioned_sketch_ptr();
    operator SdaiSubsketch_ptr();

    //  part 3
        SdaiSketch_type_select_ptr_c owning_sketch_() const;
        SdaiSketch_type_select_ptr   owning_sketch_();
        void owning_sketch_( const SdaiSketch_type_select_ptr x );

        SdaiSketch_element_select_agg_ptr_c subsketch_elements_() const;
        SdaiSketch_element_select_agg_ptr   subsketch_elements_();
        void subsketch_elements_( const SdaiSketch_element_select_agg_ptr x );

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

        SdaiSketch_basis_select_ptr_c sketch_basis_() const;
        SdaiSketch_basis_select_ptr   sketch_basis_();
        void sketch_basis_( const SdaiSketch_basis_select_ptr x );

        SdaiSketch_element_select_agg_ptr_c representation_items_() const;
        SdaiSketch_element_select_agg_ptr   representation_items_();
        void representation_items_( const SdaiSketch_element_select_agg_ptr x );

  const SdaiCurves_or_area_var   neutral_sketch_semantics_() const;
        SdaiCurves_or_area_var   neutral_sketch_semantics_();
        void neutral_sketch_semantics_( const SdaiCurves_or_area_var x );

        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
    SdaiSketch_type_select& operator =( const SdaiNeutral_sketch_representation_ptr& );
    SdaiSketch_type_select& operator =( const SdaiPositioned_sketch_ptr& );
    SdaiSketch_type_select& operator =( const SdaiSubsketch_ptr& );
    // not in SDAI
    SdaiSketch_type_select& ShallowCopy ( const SdaiSketch_type_select& );

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

    //  part 5
    Logical IsNeutral_sketch_representation() const;
    Logical IsPositioned_sketch() const;
    Logical IsSubsketch() const;

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

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

inline SDAI_Select * create_SdaiSketch_type_select () { return new SdaiSketch_type_select; }
typedef SdaiSketch_type_select * SdaiSketch_type_selectH;
typedef SdaiSketch_type_select_ptr SdaiSketch_type_select_var;


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

  public:
    SdaiSketch_type_select_agg( SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_sketch_type_select );
    ~SdaiSketch_type_select_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiSketch_type_select( sel_type )); }
};
inline STEPaggregate * create_SdaiSketch_type_select_agg () { return new SdaiSketch_type_select_agg; }
typedef SdaiSketch_type_select_agg_ptr SdaiSketch_type_select_agg_var;

/////  END SELECT TYPE sketch_type_select

void init_SdaiSketch_type_select(Registry& reg);

#endif
