#ifndef  TYPE_SDAICONTRACT_ITEM_H
#define  TYPE_SDAICONTRACT_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 SdaiContract_item
class SC_SCHEMA_EXPORT SdaiContract_item  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   ACTION_DIRECTIVE    --  sdaiINSTANCE
    //   ALTERNATE_PRODUCT_RELATIONSHIP    --  sdaiINSTANCE
    //   DIRECTED_ACTION    --  sdaiINSTANCE
    //   DRAWING_REVISION    --  sdaiINSTANCE
    //   EXECUTED_ACTION    --  sdaiINSTANCE
    //   INFORMATION_USAGE_RIGHT    --  sdaiINSTANCE
    //   ORGANIZATION    --  sdaiINSTANCE
    //   PERSON_AND_ORGANIZATION    --  sdaiINSTANCE
    //   PRODUCT    --  sdaiINSTANCE
    //   PRODUCT_DEFINITION_FORMATION    --  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
    SdaiContract_item( const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_contract_item );
    //  part 1
    SdaiContract_item( const SdaiAction_directive_ptr&,
                       const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_contract_item );
    SdaiContract_item( const SdaiAlternate_product_relationship_ptr&,
                       const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_contract_item );
    SdaiContract_item( const SdaiDirected_action_ptr&,
                       const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_contract_item );
    SdaiContract_item( const SdaiDrawing_revision_ptr&,
                       const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_contract_item );
    SdaiContract_item( const SdaiExecuted_action_ptr&,
                       const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_contract_item );
    SdaiContract_item( const SdaiInformation_usage_right_ptr&,
                       const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_contract_item );
    SdaiContract_item( const SdaiOrganization_ptr&,
                       const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_contract_item );
    SdaiContract_item( const SdaiPerson_and_organization_ptr&,
                       const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_contract_item );
    SdaiContract_item( const SdaiProduct_ptr&,
                       const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_contract_item );
    SdaiContract_item( const SdaiProduct_definition_formation_ptr&,
                       const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_contract_item );
    virtual ~SdaiContract_item();

    //  part 2
    operator SdaiAction_directive_ptr();
    operator SdaiAlternate_product_relationship_ptr();
    operator SdaiDirected_action_ptr();
    operator SdaiDrawing_revision_ptr();
    operator SdaiExecuted_action_ptr();
    operator SdaiInformation_usage_right_ptr();
    operator SdaiOrganization_ptr();
    operator SdaiPerson_and_organization_ptr();
    operator SdaiProduct_ptr();
    operator SdaiProduct_definition_formation_ptr();

    //  part 3
        SdaiProduct_ptr_c of_product_() const;
        SdaiProduct_ptr   of_product_();
        void of_product_( const SdaiProduct_ptr x );

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

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

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

  const SdaiText   purpose_() const;
        SdaiText   purpose_();
        void purpose_( const SdaiText x );

  const SdaiText   consequence_() const;
        SdaiText   consequence_();
        void consequence_( const SdaiText x );

  const SdaiText   intended_scale_() const;
        SdaiText   intended_scale_();
        void intended_scale_( const SdaiText x );

        SdaiDrawing_definition_ptr_c drawing_identifier_() const;
        SdaiDrawing_definition_ptr   drawing_identifier_();
        void drawing_identifier_( const SdaiDrawing_definition_ptr x );

  const SdaiIdentifier   revision_identifier_() const;
        SdaiIdentifier   revision_identifier_();
        void revision_identifier_( const SdaiIdentifier x );

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

        SdaiAction_directive_ptr_c directive_() const;
        SdaiAction_directive_ptr   directive_();
        void directive_( const SdaiAction_directive_ptr x );

        SdaiAction_method_ptr_c chosen_method_() const;
        SdaiAction_method_ptr   chosen_method_();
        void chosen_method_( const SdaiAction_method_ptr x );

  const SdaiText   basis_() const;
        SdaiText   basis_();
        void basis_( const SdaiText x );

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

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

  const SdaiText   definition_() const;
        SdaiText   definition_();
        void definition_( const SdaiText x );

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

  const SdaiText   comment_() const;
        SdaiText   comment_();
        void comment_( const SdaiText x );

  const SdaiText   analysis_() const;
        SdaiText   analysis_();
        void analysis_( const SdaiText 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
    SdaiContract_item& operator =( const SdaiAction_directive_ptr& );
    SdaiContract_item& operator =( const SdaiAlternate_product_relationship_ptr& );
    SdaiContract_item& operator =( const SdaiDirected_action_ptr& );
    SdaiContract_item& operator =( const SdaiDrawing_revision_ptr& );
    SdaiContract_item& operator =( const SdaiExecuted_action_ptr& );
    SdaiContract_item& operator =( const SdaiInformation_usage_right_ptr& );
    SdaiContract_item& operator =( const SdaiOrganization_ptr& );
    SdaiContract_item& operator =( const SdaiPerson_and_organization_ptr& );
    SdaiContract_item& operator =( const SdaiProduct_ptr& );
    SdaiContract_item& operator =( const SdaiProduct_definition_formation_ptr& );
    // not in SDAI
    SdaiContract_item& ShallowCopy ( const SdaiContract_item& );

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

    //  part 5
    Logical IsAction_directive() const;
    Logical IsAlternate_product_relationship() const;
    Logical IsDirected_action() const;
    Logical IsDrawing_revision() const;
    Logical IsExecuted_action() const;
    Logical IsInformation_usage_right() const;
    Logical IsOrganization() const;
    Logical IsPerson_and_organization() const;
    Logical IsProduct() const;
    Logical IsProduct_definition_formation() const;

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

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

inline SDAI_Select * create_SdaiContract_item () { return new SdaiContract_item; }
typedef SdaiContract_item * SdaiContract_itemH;
typedef SdaiContract_item_ptr SdaiContract_item_var;


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

  public:
    SdaiContract_item_agg( SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_contract_item );
    ~SdaiContract_item_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiContract_item( sel_type )); }
};
inline STEPaggregate * create_SdaiContract_item_agg () { return new SdaiContract_item_agg; }
typedef SdaiContract_item_agg_ptr SdaiContract_item_agg_var;

/////  END SELECT TYPE contract_item

void init_SdaiContract_item(Registry& reg);

#endif
