#ifndef  TYPE_SDAIDOCUMENT_REFERENCE_ITEM_H
#define  TYPE_SDAIDOCUMENT_REFERENCE_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 SdaiDocument_reference_item
class SC_SCHEMA_EXPORT SdaiDocument_reference_item  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   ACTION_METHOD    --  sdaiINSTANCE
    //   ACTION_RESOURCE_REQUIREMENT    --  sdaiINSTANCE
    //   CONTROLLER    --  sdaiINSTANCE
    //   DATE_AND_TIME    --  sdaiINSTANCE
    //   DRAWING    --  sdaiINSTANCE
    //   EXTERNALLY_DEFINED_SCHEMA    --  sdaiINSTANCE
    //   FIXTURE_ASSEMBLY    --  sdaiINSTANCE
    //   FIXTURE_ASSEMBLY_ELEMENT    --  sdaiINSTANCE
    //   MACHINE_USAGE    --  sdaiINSTANCE
    //   PROCESS_ACTIVITY    --  sdaiINSTANCE
    //   PROCESS_PLAN_ACTIVITY    --  sdaiINSTANCE
    //   PRODUCT_DEFINITION    --  sdaiINSTANCE
    //   PRODUCT_DEFINITION_FORMATION    --  sdaiINSTANCE
    //   PROPERTY_DEFINITION    --  sdaiINSTANCE
    //   TOOL_ASSEMBLY    --  sdaiINSTANCE
    //   TOOL_ASSEMBLY_ELEMENT    --  sdaiINSTANCE
    //   TOOL_DATA    --  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
    SdaiDocument_reference_item( const SelectTypeDescriptor * =process_planning_schema::t_document_reference_item );
    //  part 1
    SdaiDocument_reference_item( const SdaiAction_method_ptr&,
                                 const SelectTypeDescriptor * =process_planning_schema::t_document_reference_item );
    SdaiDocument_reference_item( const SdaiAction_resource_requirement_ptr&,
                                 const SelectTypeDescriptor * =process_planning_schema::t_document_reference_item );
    SdaiDocument_reference_item( const SdaiController_ptr&,
                                 const SelectTypeDescriptor * =process_planning_schema::t_document_reference_item );
    SdaiDocument_reference_item( const SdaiDate_and_time_ptr&,
                                 const SelectTypeDescriptor * =process_planning_schema::t_document_reference_item );
    SdaiDocument_reference_item( const SdaiDrawing_ptr&,
                                 const SelectTypeDescriptor * =process_planning_schema::t_document_reference_item );
    SdaiDocument_reference_item( const SdaiExternally_defined_schema_ptr&,
                                 const SelectTypeDescriptor * =process_planning_schema::t_document_reference_item );
    SdaiDocument_reference_item( const SdaiFixture_assembly_ptr&,
                                 const SelectTypeDescriptor * =process_planning_schema::t_document_reference_item );
    SdaiDocument_reference_item( const SdaiFixture_assembly_element_ptr&,
                                 const SelectTypeDescriptor * =process_planning_schema::t_document_reference_item );
    SdaiDocument_reference_item( const SdaiMachine_usage_ptr&,
                                 const SelectTypeDescriptor * =process_planning_schema::t_document_reference_item );
    SdaiDocument_reference_item( const SdaiProcess_activity_ptr&,
                                 const SelectTypeDescriptor * =process_planning_schema::t_document_reference_item );
    SdaiDocument_reference_item( const SdaiProcess_plan_activity_ptr&,
                                 const SelectTypeDescriptor * =process_planning_schema::t_document_reference_item );
    SdaiDocument_reference_item( const SdaiProduct_definition_ptr&,
                                 const SelectTypeDescriptor * =process_planning_schema::t_document_reference_item );
    SdaiDocument_reference_item( const SdaiProduct_definition_formation_ptr&,
                                 const SelectTypeDescriptor * =process_planning_schema::t_document_reference_item );
    SdaiDocument_reference_item( const SdaiProperty_definition_ptr&,
                                 const SelectTypeDescriptor * =process_planning_schema::t_document_reference_item );
    SdaiDocument_reference_item( const SdaiTool_assembly_ptr&,
                                 const SelectTypeDescriptor * =process_planning_schema::t_document_reference_item );
    SdaiDocument_reference_item( const SdaiTool_assembly_element_ptr&,
                                 const SelectTypeDescriptor * =process_planning_schema::t_document_reference_item );
    SdaiDocument_reference_item( const SdaiTool_data_ptr&,
                                 const SelectTypeDescriptor * =process_planning_schema::t_document_reference_item );
    virtual ~SdaiDocument_reference_item();

    //  part 2
    operator SdaiAction_method_ptr();
    operator SdaiAction_resource_requirement_ptr();
    operator SdaiController_ptr();
    operator SdaiDate_and_time_ptr();
    operator SdaiDrawing_ptr();
    operator SdaiExternally_defined_schema_ptr();
    operator SdaiFixture_assembly_ptr();
    operator SdaiFixture_assembly_element_ptr();
    operator SdaiMachine_usage_ptr();
    operator SdaiProcess_activity_ptr();
    operator SdaiProcess_plan_activity_ptr();
    operator SdaiProduct_definition_ptr();
    operator SdaiProduct_definition_formation_ptr();
    operator SdaiProperty_definition_ptr();
    operator SdaiTool_assembly_ptr();
    operator SdaiTool_assembly_element_ptr();
    operator SdaiTool_data_ptr();

    //  part 3
        SdaiCharacterized_resource_definition_ptr_c resource_() const;
        SdaiCharacterized_resource_definition_ptr   resource_();
        void resource_( const SdaiCharacterized_resource_definition_ptr x );

        SdaiCharacterized_definition_ptr_c definition_() const;
        SdaiCharacterized_definition_ptr   definition_();
        void definition_( const SdaiCharacterized_definition_ptr x );

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

        SdaiProduct_definition_context_ptr_c frame_of_reference_() const;
        SdaiProduct_definition_context_ptr   frame_of_reference_();
        void frame_of_reference_( const SdaiProduct_definition_context_ptr x );

        SdaiProduct_definition_formation_ptr_c formation_() const;
        SdaiProduct_definition_formation_ptr   formation_();
        void formation_( const SdaiProduct_definition_formation_ptr x );

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

        SdaiExternal_source_ptr_c source_() const;
        SdaiExternal_source_ptr   source_();
        void source_( const SdaiExternal_source_ptr x );

        SdaiSource_item_ptr_c item_id_() const;
        SdaiSource_item_ptr   item_id_();
        void item_id_( const SdaiSource_item_ptr x );

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

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

        SdaiLocal_time_ptr_c time_component_() const;
        SdaiLocal_time_ptr   time_component_();
        void time_component_( const SdaiLocal_time_ptr x );

        SdaiDate_ptr_c date_component_() const;
        SdaiDate_ptr   date_component_();
        void date_component_( const SdaiDate_ptr x );

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

        SdaiCharacterized_action_definition_agg_ptr_c operations_() const;
        SdaiCharacterized_action_definition_agg_ptr   operations_();
        void operations_( const SdaiCharacterized_action_definition_agg_ptr x );

        SdaiResource_requirement_type_ptr_c kind_() const;
        SdaiResource_requirement_type_ptr   kind_();
        void kind_( const SdaiResource_requirement_type_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   description_() const;
        SdaiText   description_();
        void description_( const SdaiText x );

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


    //  part 4
    SdaiDocument_reference_item& operator =( const SdaiAction_method_ptr& );
    SdaiDocument_reference_item& operator =( const SdaiAction_resource_requirement_ptr& );
    SdaiDocument_reference_item& operator =( const SdaiController_ptr& );
    SdaiDocument_reference_item& operator =( const SdaiDate_and_time_ptr& );
    SdaiDocument_reference_item& operator =( const SdaiDrawing_ptr& );
    SdaiDocument_reference_item& operator =( const SdaiExternally_defined_schema_ptr& );
    SdaiDocument_reference_item& operator =( const SdaiFixture_assembly_ptr& );
    SdaiDocument_reference_item& operator =( const SdaiFixture_assembly_element_ptr& );
    SdaiDocument_reference_item& operator =( const SdaiMachine_usage_ptr& );
    SdaiDocument_reference_item& operator =( const SdaiProcess_activity_ptr& );
    SdaiDocument_reference_item& operator =( const SdaiProcess_plan_activity_ptr& );
    SdaiDocument_reference_item& operator =( const SdaiProduct_definition_ptr& );
    SdaiDocument_reference_item& operator =( const SdaiProduct_definition_formation_ptr& );
    SdaiDocument_reference_item& operator =( const SdaiProperty_definition_ptr& );
    SdaiDocument_reference_item& operator =( const SdaiTool_assembly_ptr& );
    SdaiDocument_reference_item& operator =( const SdaiTool_assembly_element_ptr& );
    SdaiDocument_reference_item& operator =( const SdaiTool_data_ptr& );
    // not in SDAI
    SdaiDocument_reference_item& ShallowCopy ( const SdaiDocument_reference_item& );

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

    //  part 5
    Logical IsAction_method() const;
    Logical IsAction_resource_requirement() const;
    Logical IsController() const;
    Logical IsDate_and_time() const;
    Logical IsDrawing() const;
    Logical IsExternally_defined_schema() const;
    Logical IsFixture_assembly() const;
    Logical IsFixture_assembly_element() const;
    Logical IsMachine_usage() const;
    Logical IsProcess_activity() const;
    Logical IsProcess_plan_activity() const;
    Logical IsProduct_definition() const;
    Logical IsProduct_definition_formation() const;
    Logical IsProperty_definition() const;
    Logical IsTool_assembly() const;
    Logical IsTool_assembly_element() const;
    Logical IsTool_data() const;

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

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

inline SDAI_Select * create_SdaiDocument_reference_item () { return new SdaiDocument_reference_item; }
typedef SdaiDocument_reference_item * SdaiDocument_reference_itemH;
typedef SdaiDocument_reference_item_ptr SdaiDocument_reference_item_var;


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

  public:
    SdaiDocument_reference_item_agg( SelectTypeDescriptor * =process_planning_schema::t_document_reference_item );
    ~SdaiDocument_reference_item_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiDocument_reference_item( sel_type )); }
};
inline STEPaggregate * create_SdaiDocument_reference_item_agg () { return new SdaiDocument_reference_item_agg; }
typedef SdaiDocument_reference_item_agg_ptr SdaiDocument_reference_item_agg_var;

/////  END SELECT TYPE document_reference_item

void init_SdaiDocument_reference_item(Registry& reg);

#endif
