#ifndef  TYPE_SDAIREQUIREMENT_SOURCE_ITEM_H
#define  TYPE_SDAIREQUIREMENT_SOURCE_ITEM_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 SdaiRequirement_source_item
class SC_SCHEMA_EXPORT SdaiRequirement_source_item  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   CHARACTERIZED_OBJECT    --  sdaiINSTANCE
    //   GROUP    --  sdaiINSTANCE
    //   GROUP_RELATIONSHIP    --  sdaiINSTANCE
    //   PRODUCT    --  sdaiINSTANCE
    //   PRODUCT_DEFINITION    --  sdaiINSTANCE
    //   PRODUCT_DEFINITION_FORMATION    --  sdaiINSTANCE
    //   PRODUCT_DEFINITION_RELATIONSHIP    --  sdaiINSTANCE
    //   SHAPE_ASPECT    --  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
    SdaiRequirement_source_item( const SelectTypeDescriptor * =ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim_lf::t_requirement_source_item );
    //  part 1
    SdaiRequirement_source_item( const SdaiCharacterized_object_ptr&,
                                 const SelectTypeDescriptor * =ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim_lf::t_requirement_source_item );
    SdaiRequirement_source_item( const SdaiGroup_ptr&,
                                 const SelectTypeDescriptor * =ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim_lf::t_requirement_source_item );
    SdaiRequirement_source_item( const SdaiGroup_relationship_ptr&,
                                 const SelectTypeDescriptor * =ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim_lf::t_requirement_source_item );
    SdaiRequirement_source_item( const SdaiProduct_ptr&,
                                 const SelectTypeDescriptor * =ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim_lf::t_requirement_source_item );
    SdaiRequirement_source_item( const SdaiProduct_definition_ptr&,
                                 const SelectTypeDescriptor * =ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim_lf::t_requirement_source_item );
    SdaiRequirement_source_item( const SdaiProduct_definition_formation_ptr&,
                                 const SelectTypeDescriptor * =ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim_lf::t_requirement_source_item );
    SdaiRequirement_source_item( const SdaiProduct_definition_relationship_ptr&,
                                 const SelectTypeDescriptor * =ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim_lf::t_requirement_source_item );
    SdaiRequirement_source_item( const SdaiShape_aspect_ptr&,
                                 const SelectTypeDescriptor * =ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim_lf::t_requirement_source_item );
    virtual ~SdaiRequirement_source_item();

    //  part 2
    operator SdaiCharacterized_object_ptr();
    operator SdaiGroup_ptr();
    operator SdaiGroup_relationship_ptr();
    operator SdaiProduct_ptr();
    operator SdaiProduct_definition_ptr();
    operator SdaiProduct_definition_formation_ptr();
    operator SdaiProduct_definition_relationship_ptr();
    operator SdaiShape_aspect_ptr();

    //  part 3
        Logical   product_definitional_() const;
        void product_definitional_( const Logical x );

        SdaiProduct_definition_shape_ptr_c of_shape_() const;
        SdaiProduct_definition_shape_ptr   of_shape_();
        void of_shape_( const SdaiProduct_definition_shape_ptr x );

        SdaiProduct_definition_ptr_c related_product_definition_() const;
        SdaiProduct_definition_ptr   related_product_definition_();
        void related_product_definition_( const SdaiProduct_definition_ptr x );

        SdaiProduct_definition_ptr_c relating_product_definition_() const;
        SdaiProduct_definition_ptr   relating_product_definition_();
        void relating_product_definition_( const SdaiProduct_definition_ptr x );

        SdaiProduct_ptr_c of_product_() const;
        SdaiProduct_ptr   of_product_();
        void of_product_( const SdaiProduct_ptr x );

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

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

        SdaiGroup_ptr_c related_group_() const;
        SdaiGroup_ptr   related_group_();
        void related_group_( const SdaiGroup_ptr x );

        SdaiGroup_ptr_c relating_group_() const;
        SdaiGroup_ptr   relating_group_();
        void relating_group_( const SdaiGroup_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
    SdaiRequirement_source_item& operator =( const SdaiCharacterized_object_ptr& );
    SdaiRequirement_source_item& operator =( const SdaiGroup_ptr& );
    SdaiRequirement_source_item& operator =( const SdaiGroup_relationship_ptr& );
    SdaiRequirement_source_item& operator =( const SdaiProduct_ptr& );
    SdaiRequirement_source_item& operator =( const SdaiProduct_definition_ptr& );
    SdaiRequirement_source_item& operator =( const SdaiProduct_definition_formation_ptr& );
    SdaiRequirement_source_item& operator =( const SdaiProduct_definition_relationship_ptr& );
    SdaiRequirement_source_item& operator =( const SdaiShape_aspect_ptr& );
    // not in SDAI
    SdaiRequirement_source_item& ShallowCopy ( const SdaiRequirement_source_item& );

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

    //  part 5
    Logical IsCharacterized_object() const;
    Logical IsGroup() const;
    Logical IsGroup_relationship() const;
    Logical IsProduct() const;
    Logical IsProduct_definition() const;
    Logical IsProduct_definition_formation() const;
    Logical IsProduct_definition_relationship() const;
    Logical IsShape_aspect() const;

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

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

inline SDAI_Select * create_SdaiRequirement_source_item () { return new SdaiRequirement_source_item; }
typedef SdaiRequirement_source_item * SdaiRequirement_source_itemH;
typedef SdaiRequirement_source_item_ptr SdaiRequirement_source_item_var;


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

  public:
    SdaiRequirement_source_item_agg( SelectTypeDescriptor * =ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim_lf::t_requirement_source_item );
    ~SdaiRequirement_source_item_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiRequirement_source_item( sel_type )); }
};
inline STEPaggregate * create_SdaiRequirement_source_item_agg () { return new SdaiRequirement_source_item_agg; }
typedef SdaiRequirement_source_item_agg_ptr SdaiRequirement_source_item_agg_var;

/////  END SELECT TYPE requirement_source_item

void init_SdaiRequirement_source_item(Registry& reg);

#endif
