#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 
    //   PROCESS_PLAN_SPECIFICATION    --  sdaiINSTANCE
    //   DOCUMENT_REFERENCE    --  sdaiINSTANCE
    //   FIXTURE_ASSEMBLY    --  sdaiINSTANCE
    //   ORGANIZATION    --  sdaiINSTANCE
    //   PRODUCT_DEFINITION_FORMATION    --  sdaiINSTANCE
    //   TOOL_ASSEMBLY    --  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 * =process_planning_schema::t_contract_item );
    //  part 1
    SdaiContract_item( const SdaiProcess_plan_specification_ptr&,
                       const SelectTypeDescriptor * =process_planning_schema::t_contract_item );
    SdaiContract_item( const SdaiDocument_reference_ptr&,
                       const SelectTypeDescriptor * =process_planning_schema::t_contract_item );
    SdaiContract_item( const SdaiFixture_assembly_ptr&,
                       const SelectTypeDescriptor * =process_planning_schema::t_contract_item );
    SdaiContract_item( const SdaiOrganization_ptr&,
                       const SelectTypeDescriptor * =process_planning_schema::t_contract_item );
    SdaiContract_item( const SdaiProduct_definition_formation_ptr&,
                       const SelectTypeDescriptor * =process_planning_schema::t_contract_item );
    SdaiContract_item( const SdaiTool_assembly_ptr&,
                       const SelectTypeDescriptor * =process_planning_schema::t_contract_item );
    virtual ~SdaiContract_item();

    //  part 2
    operator SdaiProcess_plan_specification_ptr();
    operator SdaiDocument_reference_ptr();
    operator SdaiFixture_assembly_ptr();
    operator SdaiOrganization_ptr();
    operator SdaiProduct_definition_formation_ptr();
    operator SdaiTool_assembly_ptr();

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

        SdaiSupported_item_agg_ptr_c usage_() const;
        SdaiSupported_item_agg_ptr   usage_();
        void usage_( const SdaiSupported_item_agg_ptr x );

  const SdaiLabel   source_() const;
        SdaiLabel   source_();
        void source_( const SdaiLabel x );

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

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

        SdaiDocument_type_ptr_c kind_() const;
        SdaiDocument_type_ptr   kind_();
        void kind_( const SdaiDocument_type_ptr x );

  const SdaiText   description_() const;
        SdaiText   description_();
        void description_( const SdaiText x );

  const SdaiLabel   name_() const;
        SdaiLabel   name_();
        void name_( const SdaiLabel x );

  const SdaiIdentifier   id_() const;
        SdaiIdentifier   id_();
        void id_( const SdaiIdentifier x );


    //  part 4
    SdaiContract_item& operator =( const SdaiProcess_plan_specification_ptr& );
    SdaiContract_item& operator =( const SdaiDocument_reference_ptr& );
    SdaiContract_item& operator =( const SdaiFixture_assembly_ptr& );
    SdaiContract_item& operator =( const SdaiOrganization_ptr& );
    SdaiContract_item& operator =( const SdaiProduct_definition_formation_ptr& );
    SdaiContract_item& operator =( const SdaiTool_assembly_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 IsProcess_plan_specification() const;
    Logical IsDocument_reference() const;
    Logical IsFixture_assembly() const;
    Logical IsOrganization() const;
    Logical IsProduct_definition_formation() const;
    Logical IsTool_assembly() 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 * =process_planning_schema::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
