#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 
    //   ACTIVITY_METHOD    --  sdaiINSTANCE
    //   APPLIED_ACTIVITY_METHOD_ASSIGNMENT    --  sdaiINSTANCE
    //   APPLIED_STATE_ASSIGNMENT    --  sdaiINSTANCE
    //   APPLIED_STATE_DEFINITION_ASSIGNMENT    --  sdaiINSTANCE
    //   DOCUMENT_VERSION    --  sdaiINSTANCE
    //   INTERFACE_CONNECTOR_OCCURRENCE    --  sdaiINSTANCE
    //   PART_VERSION    --  sdaiINSTANCE
    //   PRODUCT_AS_INDIVIDUAL_VERSION    --  sdaiINSTANCE
    //   PRODUCT_VIEW_DEFINITION    --  sdaiINSTANCE
    //   STATE    --  sdaiINSTANCE
    //   STATE_DEFINITION    --  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 * =ap239_product_life_cycle_support_arm_lf::t_requirement_source_item );
    //  part 1
    SdaiRequirement_source_item( const SdaiActivity_method_ptr&,
                                 const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_requirement_source_item );
    SdaiRequirement_source_item( const SdaiApplied_activity_method_assignment_ptr&,
                                 const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_requirement_source_item );
    SdaiRequirement_source_item( const SdaiApplied_state_assignment_ptr&,
                                 const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_requirement_source_item );
    SdaiRequirement_source_item( const SdaiApplied_state_definition_assignment_ptr&,
                                 const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_requirement_source_item );
    SdaiRequirement_source_item( const SdaiDocument_version_ptr&,
                                 const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_requirement_source_item );
    SdaiRequirement_source_item( const SdaiInterface_connector_occurrence_ptr&,
                                 const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_requirement_source_item );
    SdaiRequirement_source_item( const SdaiPart_version_ptr&,
                                 const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_requirement_source_item );
    SdaiRequirement_source_item( const SdaiProduct_as_individual_version_ptr&,
                                 const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_requirement_source_item );
    SdaiRequirement_source_item( const SdaiProduct_view_definition_ptr&,
                                 const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_requirement_source_item );
    SdaiRequirement_source_item( const SdaiState_ptr&,
                                 const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_requirement_source_item );
    SdaiRequirement_source_item( const SdaiState_definition_ptr&,
                                 const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_requirement_source_item );
    virtual ~SdaiRequirement_source_item();

    //  part 2
    operator SdaiActivity_method_ptr();
    operator SdaiApplied_activity_method_assignment_ptr();
    operator SdaiApplied_state_assignment_ptr();
    operator SdaiApplied_state_definition_assignment_ptr();
    operator SdaiDocument_version_ptr();
    operator SdaiInterface_connector_occurrence_ptr();
    operator SdaiPart_version_ptr();
    operator SdaiProduct_as_individual_version_ptr();
    operator SdaiProduct_view_definition_ptr();
    operator SdaiState_ptr();
    operator SdaiState_definition_ptr();

    //  part 3
        SdaiProduct_version_ptr_c defined_version_() const;
        SdaiProduct_version_ptr   defined_version_();
        void defined_version_( const SdaiProduct_version_ptr x );

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

        SdaiView_definition_context_ptr_c initial_context_() const;
        SdaiView_definition_context_ptr   initial_context_();
        void initial_context_( const SdaiView_definition_context_ptr x );

  const SDAI_String   additional_characterization_() const;
        SDAI_String   additional_characterization_();
        void additional_characterization_( const SDAI_String x );

        SdaiConnector_on_item_ptr_c connector_on_() const;
        SdaiConnector_on_item_ptr   connector_on_();
        void connector_on_( const SdaiConnector_on_item_ptr x );

        SdaiInterface_connector_definition_ptr_c occurrence_of_() const;
        SdaiInterface_connector_definition_ptr   occurrence_of_();
        void occurrence_of_( const SdaiInterface_connector_definition_ptr x );

        SdaiDocument_ptr_c product_version_of_product_() const;
        SdaiDocument_ptr   product_version_of_product_();
        void product_version_of_product_( const SdaiDocument_ptr x );

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

  const SDAI_String   id_() const;
        SDAI_String   id_();
        void id_( const SDAI_String x );

        SdaiState_definition_ptr_c described_state_definition_() const;
        SdaiState_definition_ptr   described_state_definition_();
        void described_state_definition_( const SdaiState_definition_ptr x );

        SdaiState_of_item_ptr_c assigned_to_() const;
        SdaiState_of_item_ptr   assigned_to_();
        void assigned_to_( const SdaiState_of_item_ptr x );

        SdaiState_ptr_c described_state_() const;
        SdaiState_ptr   described_state_();
        void described_state_( const SdaiState_ptr x );

  const SDAI_String   role_() const;
        SDAI_String   role_();
        void role_( const SDAI_String x );

        SdaiActivity_method_item_agg_ptr_c items_() const;
        SdaiActivity_method_item_agg_ptr   items_();
        void items_( const SdaiActivity_method_item_agg_ptr x );

        SdaiActivity_method_ptr_c assigned_activity_method_() const;
        SdaiActivity_method_ptr   assigned_activity_method_();
        void assigned_activity_method_( const SdaiActivity_method_ptr x );

  const SDAI_String   purpose_() const;
        SDAI_String   purpose_();
        void purpose_( const SDAI_String x );

  const SDAI_String   consequence_() const;
        SDAI_String   consequence_();
        void consequence_( const SDAI_String x );

  const SDAI_String   description_() const;
        SDAI_String   description_();
        void description_( const SDAI_String x );

  const SDAI_String   name_() const;
        SDAI_String   name_();
        void name_( const SDAI_String x );


    //  part 4
    SdaiRequirement_source_item& operator =( const SdaiActivity_method_ptr& );
    SdaiRequirement_source_item& operator =( const SdaiApplied_activity_method_assignment_ptr& );
    SdaiRequirement_source_item& operator =( const SdaiApplied_state_assignment_ptr& );
    SdaiRequirement_source_item& operator =( const SdaiApplied_state_definition_assignment_ptr& );
    SdaiRequirement_source_item& operator =( const SdaiDocument_version_ptr& );
    SdaiRequirement_source_item& operator =( const SdaiInterface_connector_occurrence_ptr& );
    SdaiRequirement_source_item& operator =( const SdaiPart_version_ptr& );
    SdaiRequirement_source_item& operator =( const SdaiProduct_as_individual_version_ptr& );
    SdaiRequirement_source_item& operator =( const SdaiProduct_view_definition_ptr& );
    SdaiRequirement_source_item& operator =( const SdaiState_ptr& );
    SdaiRequirement_source_item& operator =( const SdaiState_definition_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 IsActivity_method() const;
    Logical IsApplied_activity_method_assignment() const;
    Logical IsApplied_state_assignment() const;
    Logical IsApplied_state_definition_assignment() const;
    Logical IsDocument_version() const;
    Logical IsInterface_connector_occurrence() const;
    Logical IsPart_version() const;
    Logical IsProduct_as_individual_version() const;
    Logical IsProduct_view_definition() const;
    Logical IsState() const;
    Logical IsState_definition() 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 * =ap239_product_life_cycle_support_arm_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
