#ifndef  TYPE_SDAIPROJECT_ITEM_H
#define  TYPE_SDAIPROJECT_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 SdaiProject_item
class SC_SCHEMA_EXPORT SdaiProject_item  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   ACTIVITY    --  sdaiINSTANCE
    //   ACTIVITY_METHOD    --  sdaiINSTANCE
    //   ACTIVITY_METHOD_REALIZATION    --  sdaiINSTANCE
    //   ACTIVITY_METHOD_REALIZATION_RELATIONSHIP    --  sdaiINSTANCE
    //   ACTIVITY_METHOD_RELATIONSHIP    --  sdaiINSTANCE
    //   APPLIED_ACTIVITY_ASSIGNMENT    --  sdaiINSTANCE
    //   APPLIED_ACTIVITY_METHOD_ASSIGNMENT    --  sdaiINSTANCE
    //   BREAKDOWN    --  sdaiINSTANCE
    //   INDEPENDENT_PROPERTY    --  sdaiINSTANCE
    //   PRODUCT    --  sdaiINSTANCE
    //   PRODUCT_CONCEPT    --  sdaiINSTANCE
    //   PRODUCT_CONFIGURATION    --  sdaiINSTANCE
    //   PRODUCT_GROUP    --  sdaiINSTANCE
    //   PRODUCT_GROUP_MEMBERSHIP    --  sdaiINSTANCE
    //   PRODUCT_GROUP_RELATIONSHIP    --  sdaiINSTANCE
    //   PRODUCT_VERSION    --  sdaiINSTANCE
    //   TASK_ELEMENT    --  sdaiINSTANCE
    //   TASK_METHOD    --  sdaiINSTANCE
    //   TASK_METHOD_ASSIGNMENT    --  sdaiINSTANCE
    //   TASK_METHOD_VERSION    --  sdaiINSTANCE
    //   TASK_METHOD_VERSION_ASSIGNMENT    --  sdaiINSTANCE
    //   TASK_OBJECTIVE    --  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
    SdaiProject_item( const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_project_item );
    //  part 1
    SdaiProject_item( const SdaiActivity_ptr&,
                      const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_project_item );
    SdaiProject_item( const SdaiActivity_method_ptr&,
                      const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_project_item );
    SdaiProject_item( const SdaiActivity_method_realization_ptr&,
                      const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_project_item );
    SdaiProject_item( const SdaiActivity_method_realization_relationship_ptr&,
                      const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_project_item );
    SdaiProject_item( const SdaiActivity_method_relationship_ptr&,
                      const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_project_item );
    SdaiProject_item( const SdaiApplied_activity_assignment_ptr&,
                      const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_project_item );
    SdaiProject_item( const SdaiApplied_activity_method_assignment_ptr&,
                      const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_project_item );
    SdaiProject_item( const SdaiBreakdown_ptr&,
                      const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_project_item );
    SdaiProject_item( const SdaiIndependent_property_ptr&,
                      const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_project_item );
    SdaiProject_item( const SdaiProduct_ptr&,
                      const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_project_item );
    SdaiProject_item( const SdaiProduct_concept_ptr&,
                      const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_project_item );
    SdaiProject_item( const SdaiProduct_configuration_ptr&,
                      const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_project_item );
    SdaiProject_item( const SdaiProduct_group_ptr&,
                      const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_project_item );
    SdaiProject_item( const SdaiProduct_group_membership_ptr&,
                      const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_project_item );
    SdaiProject_item( const SdaiProduct_group_relationship_ptr&,
                      const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_project_item );
    SdaiProject_item( const SdaiProduct_version_ptr&,
                      const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_project_item );
    SdaiProject_item( const SdaiTask_element_ptr&,
                      const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_project_item );
    SdaiProject_item( const SdaiTask_method_ptr&,
                      const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_project_item );
    SdaiProject_item( const SdaiTask_method_assignment_ptr&,
                      const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_project_item );
    SdaiProject_item( const SdaiTask_method_version_ptr&,
                      const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_project_item );
    SdaiProject_item( const SdaiTask_method_version_assignment_ptr&,
                      const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_project_item );
    SdaiProject_item( const SdaiTask_objective_ptr&,
                      const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_project_item );
    virtual ~SdaiProject_item();

    //  part 2
    operator SdaiActivity_ptr();
    operator SdaiActivity_method_ptr();
    operator SdaiActivity_method_realization_ptr();
    operator SdaiActivity_method_realization_relationship_ptr();
    operator SdaiActivity_method_relationship_ptr();
    operator SdaiApplied_activity_assignment_ptr();
    operator SdaiApplied_activity_method_assignment_ptr();
    operator SdaiBreakdown_ptr();
    operator SdaiIndependent_property_ptr();
    operator SdaiProduct_ptr();
    operator SdaiProduct_concept_ptr();
    operator SdaiProduct_configuration_ptr();
    operator SdaiProduct_group_ptr();
    operator SdaiProduct_group_membership_ptr();
    operator SdaiProduct_group_relationship_ptr();
    operator SdaiProduct_version_ptr();
    operator SdaiTask_element_ptr();
    operator SdaiTask_method_ptr();
    operator SdaiTask_method_assignment_ptr();
    operator SdaiTask_method_version_ptr();
    operator SdaiTask_method_version_assignment_ptr();
    operator SdaiTask_objective_ptr();

    //  part 3
        SdaiTask_method_ptr_c of_task_method_() const;
        SdaiTask_method_ptr   of_task_method_();
        void of_task_method_( const SdaiTask_method_ptr x );

        SdaiTask_element_ptr_c content_() const;
        SdaiTask_element_ptr   content_();
        void content_( const SdaiTask_element_ptr x );

        SdaiTask_item_agg_ptr_c applied_activity_method_assignment_items_() const;
        SdaiTask_item_agg_ptr   applied_activity_method_assignment_items_();
        void applied_activity_method_assignment_items_( const SdaiTask_item_agg_ptr x );

        SdaiTask_method_ptr_c applied_activity_method_assignment_assigned_activity_method_() const;
        SdaiTask_method_ptr   applied_activity_method_assignment_assigned_activity_method_();
        void applied_activity_method_assignment_assigned_activity_method_( const SdaiTask_method_ptr x );

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

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

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

        SdaiProduct_group_ptr_c of_group_() const;
        SdaiProduct_group_ptr   of_group_();
        void of_group_( const SdaiProduct_group_ptr x );

        SdaiProduct_select_ptr_c member_() const;
        SdaiProduct_select_ptr   member_();
        void member_( const SdaiProduct_select_ptr x );

  const SDAI_String   product_group_context_() const;
        SDAI_String   product_group_context_();
        void product_group_context_( const SDAI_String x );

  const SDAI_String   membership_rule_() const;
        SDAI_String   membership_rule_();
        void membership_rule_( const SDAI_String x );

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

        SdaiProduct_concept_ptr_c item_context_() const;
        SdaiProduct_concept_ptr   item_context_();
        void item_context_( const SdaiProduct_concept_ptr x );

        SdaiMarket_ptr_c target_market_() const;
        SdaiMarket_ptr   target_market_();
        void target_market_( const SdaiMarket_ptr x );

  const SDAI_String   property_type_() const;
        SDAI_String   property_type_();
        void property_type_( const SDAI_String 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   role_() const;
        SDAI_String   role_();
        void role_( const SDAI_String x );

        SdaiActivity_item_agg_ptr_c items_() const;
        SdaiActivity_item_agg_ptr   items_();
        void items_( const SdaiActivity_item_agg_ptr x );

        SdaiActivity_ptr_c assigned_activity_() const;
        SdaiActivity_ptr   assigned_activity_();
        void assigned_activity_( const SdaiActivity_ptr x );

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

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

        SdaiActivity_method_realization_ptr_c related_() const;
        SdaiActivity_method_realization_ptr   related_();
        void related_( const SdaiActivity_method_realization_ptr x );

        SdaiActivity_method_realization_ptr_c relating_() const;
        SdaiActivity_method_realization_ptr   relating_();
        void relating_( const SdaiActivity_method_realization_ptr x );

        SdaiActivity_realization_select_ptr_c realized_by_() const;
        SdaiActivity_realization_select_ptr   realized_by_();
        void realized_by_( const SdaiActivity_realization_select_ptr x );

        SdaiActivity_method_ptr_c activity_method_() const;
        SdaiActivity_method_ptr   activity_method_();
        void 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 );

        SdaiActivity_method_ptr_c chosen_method_() const;
        SdaiActivity_method_ptr   chosen_method_();
        void chosen_method_( const SdaiActivity_method_ptr 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 );

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


    //  part 4
    SdaiProject_item& operator =( const SdaiActivity_ptr& );
    SdaiProject_item& operator =( const SdaiActivity_method_ptr& );
    SdaiProject_item& operator =( const SdaiActivity_method_realization_ptr& );
    SdaiProject_item& operator =( const SdaiActivity_method_realization_relationship_ptr& );
    SdaiProject_item& operator =( const SdaiActivity_method_relationship_ptr& );
    SdaiProject_item& operator =( const SdaiApplied_activity_assignment_ptr& );
    SdaiProject_item& operator =( const SdaiApplied_activity_method_assignment_ptr& );
    SdaiProject_item& operator =( const SdaiBreakdown_ptr& );
    SdaiProject_item& operator =( const SdaiIndependent_property_ptr& );
    SdaiProject_item& operator =( const SdaiProduct_ptr& );
    SdaiProject_item& operator =( const SdaiProduct_concept_ptr& );
    SdaiProject_item& operator =( const SdaiProduct_configuration_ptr& );
    SdaiProject_item& operator =( const SdaiProduct_group_ptr& );
    SdaiProject_item& operator =( const SdaiProduct_group_membership_ptr& );
    SdaiProject_item& operator =( const SdaiProduct_group_relationship_ptr& );
    SdaiProject_item& operator =( const SdaiProduct_version_ptr& );
    SdaiProject_item& operator =( const SdaiTask_element_ptr& );
    SdaiProject_item& operator =( const SdaiTask_method_ptr& );
    SdaiProject_item& operator =( const SdaiTask_method_assignment_ptr& );
    SdaiProject_item& operator =( const SdaiTask_method_version_ptr& );
    SdaiProject_item& operator =( const SdaiTask_method_version_assignment_ptr& );
    SdaiProject_item& operator =( const SdaiTask_objective_ptr& );
    // not in SDAI
    SdaiProject_item& ShallowCopy ( const SdaiProject_item& );

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

    //  part 5
    Logical IsActivity() const;
    Logical IsActivity_method() const;
    Logical IsActivity_method_realization() const;
    Logical IsActivity_method_realization_relationship() const;
    Logical IsActivity_method_relationship() const;
    Logical IsApplied_activity_assignment() const;
    Logical IsApplied_activity_method_assignment() const;
    Logical IsBreakdown() const;
    Logical IsIndependent_property() const;
    Logical IsProduct() const;
    Logical IsProduct_concept() const;
    Logical IsProduct_configuration() const;
    Logical IsProduct_group() const;
    Logical IsProduct_group_membership() const;
    Logical IsProduct_group_relationship() const;
    Logical IsProduct_version() const;
    Logical IsTask_element() const;
    Logical IsTask_method() const;
    Logical IsTask_method_assignment() const;
    Logical IsTask_method_version() const;
    Logical IsTask_method_version_assignment() const;
    Logical IsTask_objective() const;

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

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

inline SDAI_Select * create_SdaiProject_item () { return new SdaiProject_item; }
typedef SdaiProject_item * SdaiProject_itemH;
typedef SdaiProject_item_ptr SdaiProject_item_var;


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

  public:
    SdaiProject_item_agg( SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_project_item );
    ~SdaiProject_item_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiProject_item( sel_type )); }
};
inline STEPaggregate * create_SdaiProject_item_agg () { return new SdaiProject_item_agg; }
typedef SdaiProject_item_agg_ptr SdaiProject_item_agg_var;

/////  END SELECT TYPE project_item

void init_SdaiProject_item(Registry& reg);

#endif
