#ifndef  TYPE_SDAIWORK_OUTPUT_ITEM_H
#define  TYPE_SDAIWORK_OUTPUT_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 SdaiWork_output_item
class SC_SCHEMA_EXPORT SdaiWork_output_item  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   BREAKDOWN    --  sdaiINSTANCE
    //   BREAKDOWN_VERSION    --  sdaiINSTANCE
    //   CONTRACT    --  sdaiINSTANCE
    //   DOCUMENT    --  sdaiINSTANCE
    //   DOCUMENT_DEFINITION    --  sdaiINSTANCE
    //   DOCUMENT_VERSION    --  sdaiINSTANCE
    //   ENVELOPE    --  sdaiINSTANCE
    //   FILE    --  sdaiINSTANCE
    //   LOCATION    --  sdaiINSTANCE
    //   MANAGED_RESOURCE    --  sdaiINSTANCE
    //   MESSAGE    --  sdaiINSTANCE
    //   ORGANIZATION    --  sdaiINSTANCE
    //   ORGANIZATION_TYPE    --  sdaiINSTANCE
    //   PART    --  sdaiINSTANCE
    //   PART_VERSION    --  sdaiINSTANCE
    //   PART_VIEW_DEFINITION    --  sdaiINSTANCE
    //   PERSON    --  sdaiINSTANCE
    //   PERSON_IN_ORGANIZATION    --  sdaiINSTANCE
    //   POSITION    --  sdaiINSTANCE
    //   POSITION_TYPE    --  sdaiINSTANCE
    //   PRODUCT    --  sdaiINSTANCE
    //   PRODUCT_AS_INDIVIDUAL    --  sdaiINSTANCE
    //   PRODUCT_AS_INDIVIDUAL_VERSION    --  sdaiINSTANCE
    //   PRODUCT_AS_INDIVIDUAL_VIEW    --  sdaiINSTANCE
    //   PRODUCT_GROUP    --  sdaiINSTANCE
    //   PRODUCT_VERSION    --  sdaiINSTANCE
    //   PRODUCT_VIEW_DEFINITION    --  sdaiINSTANCE
    //   RESOURCE_AS_REALIZED    --  sdaiINSTANCE
    //   RESOURCE_ITEM    --  sdaiINSTANCE
    //   TYPE_OF_PERSON    --  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
    SdaiWork_output_item( const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_work_output_item );
    //  part 1
    SdaiWork_output_item( const SdaiBreakdown_ptr&,
                          const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_work_output_item );
    SdaiWork_output_item( const SdaiBreakdown_version_ptr&,
                          const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_work_output_item );
    SdaiWork_output_item( const SdaiContract_ptr&,
                          const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_work_output_item );
    SdaiWork_output_item( const SdaiDocument_ptr&,
                          const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_work_output_item );
    SdaiWork_output_item( const SdaiDocument_definition_ptr&,
                          const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_work_output_item );
    SdaiWork_output_item( const SdaiDocument_version_ptr&,
                          const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_work_output_item );
    SdaiWork_output_item( const SdaiEnvelope_ptr&,
                          const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_work_output_item );
    SdaiWork_output_item( const SdaiFile_ptr&,
                          const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_work_output_item );
    SdaiWork_output_item( const SdaiLocation_ptr&,
                          const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_work_output_item );
    SdaiWork_output_item( const SdaiManaged_resource_ptr&,
                          const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_work_output_item );
    SdaiWork_output_item( const SdaiMessage_ptr&,
                          const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_work_output_item );
    SdaiWork_output_item( const SdaiOrganization_ptr&,
                          const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_work_output_item );
    SdaiWork_output_item( const SdaiOrganization_type_ptr&,
                          const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_work_output_item );
    SdaiWork_output_item( const SdaiPart_ptr&,
                          const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_work_output_item );
    SdaiWork_output_item( const SdaiPart_version_ptr&,
                          const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_work_output_item );
    SdaiWork_output_item( const SdaiPart_view_definition_ptr&,
                          const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_work_output_item );
    SdaiWork_output_item( const SdaiPerson_ptr&,
                          const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_work_output_item );
    SdaiWork_output_item( const SdaiPerson_in_organization_ptr&,
                          const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_work_output_item );
    SdaiWork_output_item( const SdaiPosition_ptr&,
                          const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_work_output_item );
    SdaiWork_output_item( const SdaiPosition_type_ptr&,
                          const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_work_output_item );
    SdaiWork_output_item( const SdaiProduct_ptr&,
                          const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_work_output_item );
    SdaiWork_output_item( const SdaiProduct_as_individual_ptr&,
                          const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_work_output_item );
    SdaiWork_output_item( const SdaiProduct_as_individual_version_ptr&,
                          const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_work_output_item );
    SdaiWork_output_item( const SdaiProduct_as_individual_view_ptr&,
                          const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_work_output_item );
    SdaiWork_output_item( const SdaiProduct_group_ptr&,
                          const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_work_output_item );
    SdaiWork_output_item( const SdaiProduct_version_ptr&,
                          const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_work_output_item );
    SdaiWork_output_item( const SdaiProduct_view_definition_ptr&,
                          const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_work_output_item );
    SdaiWork_output_item( const SdaiResource_as_realized_ptr&,
                          const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_work_output_item );
    SdaiWork_output_item( const SdaiResource_item_ptr&,
                          const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_work_output_item );
    SdaiWork_output_item( const SdaiType_of_person_ptr&,
                          const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_work_output_item );
    virtual ~SdaiWork_output_item();

    //  part 2
    operator SdaiBreakdown_ptr();
    operator SdaiBreakdown_version_ptr();
    operator SdaiContract_ptr();
    operator SdaiDocument_ptr();
    operator SdaiDocument_definition_ptr();
    operator SdaiDocument_version_ptr();
    operator SdaiEnvelope_ptr();
    operator SdaiFile_ptr();
    operator SdaiLocation_ptr();
    operator SdaiManaged_resource_ptr();
    operator SdaiMessage_ptr();
    operator SdaiOrganization_ptr();
    operator SdaiOrganization_type_ptr();
    operator SdaiPart_ptr();
    operator SdaiPart_version_ptr();
    operator SdaiPart_view_definition_ptr();
    operator SdaiPerson_ptr();
    operator SdaiPerson_in_organization_ptr();
    operator SdaiPosition_ptr();
    operator SdaiPosition_type_ptr();
    operator SdaiProduct_ptr();
    operator SdaiProduct_as_individual_ptr();
    operator SdaiProduct_as_individual_version_ptr();
    operator SdaiProduct_as_individual_view_ptr();
    operator SdaiProduct_group_ptr();
    operator SdaiProduct_version_ptr();
    operator SdaiProduct_view_definition_ptr();
    operator SdaiResource_as_realized_ptr();
    operator SdaiResource_item_ptr();
    operator SdaiType_of_person_ptr();

    //  part 3
        EntityAggregate_ptr_c has_() const;
        EntityAggregate_ptr   has_();
        void has_( const EntityAggregate_ptr x );

        SdaiResource_item_select_agg_ptr_c resource_items_() const;
        SdaiResource_item_select_agg_ptr   resource_items_();
        void resource_items_( const SdaiResource_item_select_agg_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 );

        SdaiPosition_context_item_ptr_c position_context_() const;
        SdaiPosition_context_item_ptr   position_context_();
        void position_context_( const SdaiPosition_context_item_ptr x );

        SdaiAddress_ptr_c address_() const;
        SdaiAddress_ptr   address_();
        void address_( const SdaiAddress_ptr x );

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

        SdaiOrganization_ptr_c containing_organization_() const;
        SdaiOrganization_ptr   containing_organization_();
        void containing_organization_( const SdaiOrganization_ptr x );

        SdaiPerson_ptr_c concerned_person_() const;
        SdaiPerson_ptr   concerned_person_();
        void concerned_person_( const SdaiPerson_ptr x );

        StringAggregate_ptr_c suffix_titles_() const;
        StringAggregate_ptr   suffix_titles_();
        void suffix_titles_( const StringAggregate_ptr x );

        StringAggregate_ptr_c prefix_titles_() const;
        StringAggregate_ptr   prefix_titles_();
        void prefix_titles_( const StringAggregate_ptr x );

        StringAggregate_ptr_c middle_names_() const;
        StringAggregate_ptr   middle_names_();
        void middle_names_( const StringAggregate_ptr x );

  const SDAI_String   first_name_() const;
        SDAI_String   first_name_();
        void first_name_( const SDAI_String x );

  const SDAI_String   last_name_() const;
        SDAI_String   last_name_();
        void last_name_( const SDAI_String x );

        SdaiMessage_definer_select_agg_ptr_c defined_by_() const;
        SdaiMessage_definer_select_agg_ptr   defined_by_();
        void defined_by_( const SdaiMessage_definer_select_agg_ptr x );

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

  const SDAI_String   message_type_() const;
        SDAI_String   message_type_();
        void message_type_( const SDAI_String x );

        SdaiResource_item_ptr_c item_() const;
        SdaiResource_item_ptr   item_();
        void item_( const SdaiResource_item_ptr x );

        SdaiValue_with_unit_ptr_c quantity_() const;
        SdaiValue_with_unit_ptr   quantity_();
        void quantity_( const SdaiValue_with_unit_ptr x );

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

  const SDAI_String   contained_data_type_() const;
        SDAI_String   contained_data_type_();
        void contained_data_type_( const SDAI_String x );

  const SDAI_String   version_() const;
        SDAI_String   version_();
        void version_( const SDAI_String x );

        SdaiMessage_ptr_c wrapping_() const;
        SdaiMessage_ptr   wrapping_();
        void wrapping_( const SdaiMessage_ptr x );

  const SDAI_String   acknowledge_() const;
        SDAI_String   acknowledge_();
        void acknowledge_( const SDAI_String x );

        SdaiDocument_version_ptr_c product_view_definition_defined_version_() const;
        SdaiDocument_version_ptr   product_view_definition_defined_version_();
        void product_view_definition_defined_version_( const SdaiDocument_version_ptr x );

        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 );

  const SDAI_String   kind_() const;
        SDAI_String   kind_();
        void kind_( const SDAI_String x );

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

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

        SdaiBreakdown_ptr_c product_version_of_product_() const;
        SdaiBreakdown_ptr   product_version_of_product_();
        void product_version_of_product_( const SdaiBreakdown_ptr x );

        SdaiProduct_ptr_c of_product_() const;
        SdaiProduct_ptr   of_product_();
        void of_product_( const SdaiProduct_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
    SdaiWork_output_item& operator =( const SdaiBreakdown_ptr& );
    SdaiWork_output_item& operator =( const SdaiBreakdown_version_ptr& );
    SdaiWork_output_item& operator =( const SdaiContract_ptr& );
    SdaiWork_output_item& operator =( const SdaiDocument_ptr& );
    SdaiWork_output_item& operator =( const SdaiDocument_definition_ptr& );
    SdaiWork_output_item& operator =( const SdaiDocument_version_ptr& );
    SdaiWork_output_item& operator =( const SdaiEnvelope_ptr& );
    SdaiWork_output_item& operator =( const SdaiFile_ptr& );
    SdaiWork_output_item& operator =( const SdaiLocation_ptr& );
    SdaiWork_output_item& operator =( const SdaiManaged_resource_ptr& );
    SdaiWork_output_item& operator =( const SdaiMessage_ptr& );
    SdaiWork_output_item& operator =( const SdaiOrganization_ptr& );
    SdaiWork_output_item& operator =( const SdaiOrganization_type_ptr& );
    SdaiWork_output_item& operator =( const SdaiPart_ptr& );
    SdaiWork_output_item& operator =( const SdaiPart_version_ptr& );
    SdaiWork_output_item& operator =( const SdaiPart_view_definition_ptr& );
    SdaiWork_output_item& operator =( const SdaiPerson_ptr& );
    SdaiWork_output_item& operator =( const SdaiPerson_in_organization_ptr& );
    SdaiWork_output_item& operator =( const SdaiPosition_ptr& );
    SdaiWork_output_item& operator =( const SdaiPosition_type_ptr& );
    SdaiWork_output_item& operator =( const SdaiProduct_ptr& );
    SdaiWork_output_item& operator =( const SdaiProduct_as_individual_ptr& );
    SdaiWork_output_item& operator =( const SdaiProduct_as_individual_version_ptr& );
    SdaiWork_output_item& operator =( const SdaiProduct_as_individual_view_ptr& );
    SdaiWork_output_item& operator =( const SdaiProduct_group_ptr& );
    SdaiWork_output_item& operator =( const SdaiProduct_version_ptr& );
    SdaiWork_output_item& operator =( const SdaiProduct_view_definition_ptr& );
    SdaiWork_output_item& operator =( const SdaiResource_as_realized_ptr& );
    SdaiWork_output_item& operator =( const SdaiResource_item_ptr& );
    SdaiWork_output_item& operator =( const SdaiType_of_person_ptr& );
    // not in SDAI
    SdaiWork_output_item& ShallowCopy ( const SdaiWork_output_item& );

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

    //  part 5
    Logical IsBreakdown() const;
    Logical IsBreakdown_version() const;
    Logical IsContract() const;
    Logical IsDocument() const;
    Logical IsDocument_definition() const;
    Logical IsDocument_version() const;
    Logical IsEnvelope() const;
    Logical IsFile() const;
    Logical IsLocation() const;
    Logical IsManaged_resource() const;
    Logical IsMessage() const;
    Logical IsOrganization() const;
    Logical IsOrganization_type() const;
    Logical IsPart() const;
    Logical IsPart_version() const;
    Logical IsPart_view_definition() const;
    Logical IsPerson() const;
    Logical IsPerson_in_organization() const;
    Logical IsPosition() const;
    Logical IsPosition_type() const;
    Logical IsProduct() const;
    Logical IsProduct_as_individual() const;
    Logical IsProduct_as_individual_version() const;
    Logical IsProduct_as_individual_view() const;
    Logical IsProduct_group() const;
    Logical IsProduct_version() const;
    Logical IsProduct_view_definition() const;
    Logical IsResource_as_realized() const;
    Logical IsResource_item() const;
    Logical IsType_of_person() const;

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

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

inline SDAI_Select * create_SdaiWork_output_item () { return new SdaiWork_output_item; }
typedef SdaiWork_output_item * SdaiWork_output_itemH;
typedef SdaiWork_output_item_ptr SdaiWork_output_item_var;


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

  public:
    SdaiWork_output_item_agg( SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_work_output_item );
    ~SdaiWork_output_item_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiWork_output_item( sel_type )); }
};
inline STEPaggregate * create_SdaiWork_output_item_agg () { return new SdaiWork_output_item_agg; }
typedef SdaiWork_output_item_agg_ptr SdaiWork_output_item_agg_var;

/////  END SELECT TYPE work_output_item

void init_SdaiWork_output_item(Registry& reg);

#endif
