#ifndef  TYPE_SDAICSG_2D_SHAPE_SELECT_H
#define  TYPE_SDAICSG_2D_SHAPE_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 SdaiCsg_2d_shape_select
class SC_SCHEMA_EXPORT SdaiCsg_2d_shape_select  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   MAPPED_ITEM    --  sdaiINSTANCE
    //   AXIS2_PLACEMENT_2D    --  sdaiINSTANCE
    //   CSG_SOLID_2D    --  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
    SdaiCsg_2d_shape_select( const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_csg_2d_shape_select );
    //  part 1
    SdaiCsg_2d_shape_select( const SdaiMapped_item_ptr&,
                             const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_csg_2d_shape_select );
    SdaiCsg_2d_shape_select( const SdaiAxis2_placement_2d_ptr&,
                             const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_csg_2d_shape_select );
    SdaiCsg_2d_shape_select( const SdaiCsg_solid_2d_ptr&,
                             const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_csg_2d_shape_select );
    virtual ~SdaiCsg_2d_shape_select();

    //  part 2
    operator SdaiMapped_item_ptr();
    operator SdaiAxis2_placement_2d_ptr();
    operator SdaiCsg_solid_2d_ptr();

    //  part 3
        SdaiCsg_select_2d_ptr_c csg_solid_tree_root_expression_() const;
        SdaiCsg_select_2d_ptr   csg_solid_tree_root_expression_();
        void csg_solid_tree_root_expression_( const SdaiCsg_select_2d_ptr x );

        SdaiCsg_select_ptr_c tree_root_expression_() const;
        SdaiCsg_select_ptr   tree_root_expression_();
        void tree_root_expression_( const SdaiCsg_select_ptr x );

        SdaiDirection_ptr_c ref_direction_() const;
        SdaiDirection_ptr   ref_direction_();
        void ref_direction_( const SdaiDirection_ptr x );

        SdaiCartesian_point_ptr_c location_() const;
        SdaiCartesian_point_ptr   location_();
        void location_( const SdaiCartesian_point_ptr x );

        SdaiRepresentation_item_ptr_c mapping_target_() const;
        SdaiRepresentation_item_ptr   mapping_target_();
        void mapping_target_( const SdaiRepresentation_item_ptr x );

        SdaiRepresentation_map_ptr_c mapping_source_() const;
        SdaiRepresentation_map_ptr   mapping_source_();
        void mapping_source_( const SdaiRepresentation_map_ptr x );

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


    //  part 4
    SdaiCsg_2d_shape_select& operator =( const SdaiMapped_item_ptr& );
    SdaiCsg_2d_shape_select& operator =( const SdaiAxis2_placement_2d_ptr& );
    SdaiCsg_2d_shape_select& operator =( const SdaiCsg_solid_2d_ptr& );
    // not in SDAI
    SdaiCsg_2d_shape_select& ShallowCopy ( const SdaiCsg_2d_shape_select& );

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

    //  part 5
    Logical IsMapped_item() const;
    Logical IsAxis2_placement_2d() const;
    Logical IsCsg_solid_2d() const;

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

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

inline SDAI_Select * create_SdaiCsg_2d_shape_select () { return new SdaiCsg_2d_shape_select; }
typedef SdaiCsg_2d_shape_select * SdaiCsg_2d_shape_selectH;
typedef SdaiCsg_2d_shape_select_ptr SdaiCsg_2d_shape_select_var;


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

  public:
    SdaiCsg_2d_shape_select_agg( SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_csg_2d_shape_select );
    ~SdaiCsg_2d_shape_select_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiCsg_2d_shape_select( sel_type )); }
};
inline STEPaggregate * create_SdaiCsg_2d_shape_select_agg () { return new SdaiCsg_2d_shape_select_agg; }
typedef SdaiCsg_2d_shape_select_agg_ptr SdaiCsg_2d_shape_select_agg_var;

/////  END SELECT TYPE csg_2d_shape_select

void init_SdaiCsg_2d_shape_select(Registry& reg);

#endif
