#ifndef  TYPE_SDAICHANGE_RELATIONSHIP_SELECT_H
#define  TYPE_SDAICHANGE_RELATIONSHIP_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 SdaiChange_relationship_select
class SC_SCHEMA_EXPORT SdaiChange_relationship_select  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   ACTION_RELATIONSHIP    --  sdaiINSTANCE
    //   PRODUCT_DEFINITION_FORMATION_RELATIONSHIP    --  sdaiINSTANCE
    //   PRODUCT_DEFINITION_RELATIONSHIP    --  sdaiINSTANCE
    //   SHAPE_ASPECT_RELATIONSHIP    --  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
    SdaiChange_relationship_select( const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_change_relationship_select );
    //  part 1
    SdaiChange_relationship_select( const SdaiAction_relationship_ptr&,
                                    const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_change_relationship_select );
    SdaiChange_relationship_select( const SdaiProduct_definition_formation_relationship_ptr&,
                                    const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_change_relationship_select );
    SdaiChange_relationship_select( const SdaiProduct_definition_relationship_ptr&,
                                    const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_change_relationship_select );
    SdaiChange_relationship_select( const SdaiShape_aspect_relationship_ptr&,
                                    const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_change_relationship_select );
    virtual ~SdaiChange_relationship_select();

    //  part 2
    operator SdaiAction_relationship_ptr();
    operator SdaiProduct_definition_formation_relationship_ptr();
    operator SdaiProduct_definition_relationship_ptr();
    operator SdaiShape_aspect_relationship_ptr();

    //  part 3
        SdaiShape_aspect_ptr_c related_shape_aspect_() const;
        SdaiShape_aspect_ptr   related_shape_aspect_();
        void related_shape_aspect_( const SdaiShape_aspect_ptr x );

        SdaiShape_aspect_ptr_c relating_shape_aspect_() const;
        SdaiShape_aspect_ptr   relating_shape_aspect_();
        void relating_shape_aspect_( const SdaiShape_aspect_ptr x );

        SdaiProduct_definition_or_reference_ptr_c related_product_definition_() const;
        SdaiProduct_definition_or_reference_ptr   related_product_definition_();
        void related_product_definition_( const SdaiProduct_definition_or_reference_ptr x );

        SdaiProduct_definition_or_reference_ptr_c relating_product_definition_() const;
        SdaiProduct_definition_or_reference_ptr   relating_product_definition_();
        void relating_product_definition_( const SdaiProduct_definition_or_reference_ptr x );

        SdaiProduct_definition_formation_ptr_c related_product_definition_formation_() const;
        SdaiProduct_definition_formation_ptr   related_product_definition_formation_();
        void related_product_definition_formation_( const SdaiProduct_definition_formation_ptr x );

        SdaiProduct_definition_formation_ptr_c relating_product_definition_formation_() const;
        SdaiProduct_definition_formation_ptr   relating_product_definition_formation_();
        void relating_product_definition_formation_( const SdaiProduct_definition_formation_ptr x );

  const SdaiIdentifier   id_() const;
        SdaiIdentifier   id_();
        void id_( const SdaiIdentifier x );

        SdaiAction_ptr_c related_action_() const;
        SdaiAction_ptr   related_action_();
        void related_action_( const SdaiAction_ptr x );

        SdaiAction_ptr_c relating_action_() const;
        SdaiAction_ptr   relating_action_();
        void relating_action_( const SdaiAction_ptr x );

  const SdaiText   description_() const;
        SdaiText   description_();
        void description_( const SdaiText x );

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


    //  part 4
    SdaiChange_relationship_select& operator =( const SdaiAction_relationship_ptr& );
    SdaiChange_relationship_select& operator =( const SdaiProduct_definition_formation_relationship_ptr& );
    SdaiChange_relationship_select& operator =( const SdaiProduct_definition_relationship_ptr& );
    SdaiChange_relationship_select& operator =( const SdaiShape_aspect_relationship_ptr& );
    // not in SDAI
    SdaiChange_relationship_select& ShallowCopy ( const SdaiChange_relationship_select& );

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

    //  part 5
    Logical IsAction_relationship() const;
    Logical IsProduct_definition_formation_relationship() const;
    Logical IsProduct_definition_relationship() const;
    Logical IsShape_aspect_relationship() const;

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

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

inline SDAI_Select * create_SdaiChange_relationship_select () { return new SdaiChange_relationship_select; }
typedef SdaiChange_relationship_select * SdaiChange_relationship_selectH;
typedef SdaiChange_relationship_select_ptr SdaiChange_relationship_select_var;


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

  public:
    SdaiChange_relationship_select_agg( SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_change_relationship_select );
    ~SdaiChange_relationship_select_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiChange_relationship_select( sel_type )); }
};
inline STEPaggregate * create_SdaiChange_relationship_select_agg () { return new SdaiChange_relationship_select_agg; }
typedef SdaiChange_relationship_select_agg_ptr SdaiChange_relationship_select_agg_var;

/////  END SELECT TYPE change_relationship_select

void init_SdaiChange_relationship_select(Registry& reg);

#endif
