#ifndef  TYPE_SDAIACTION_REQUEST_ITEM_H
#define  TYPE_SDAIACTION_REQUEST_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 SdaiAction_request_item
class SC_SCHEMA_EXPORT SdaiAction_request_item  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   PRODUCT_DEFINITION    --  sdaiINSTANCE
    //   PRODUCT_DEFINITION_FORMATION    --  sdaiINSTANCE
    //   PRODUCT_DEFINITION_RELATIONSHIP    --  sdaiINSTANCE
    //   PROPERTY_DEFINITION    --  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
    SdaiAction_request_item( const SelectTypeDescriptor * =pdm_schema::t_action_request_item );
    //  part 1
    SdaiAction_request_item( const SdaiProduct_definition_ptr&,
                             const SelectTypeDescriptor * =pdm_schema::t_action_request_item );
    SdaiAction_request_item( const SdaiProduct_definition_formation_ptr&,
                             const SelectTypeDescriptor * =pdm_schema::t_action_request_item );
    SdaiAction_request_item( const SdaiProduct_definition_relationship_ptr&,
                             const SelectTypeDescriptor * =pdm_schema::t_action_request_item );
    SdaiAction_request_item( const SdaiProperty_definition_ptr&,
                             const SelectTypeDescriptor * =pdm_schema::t_action_request_item );
    virtual ~SdaiAction_request_item();

    //  part 2
    operator SdaiProduct_definition_ptr();
    operator SdaiProduct_definition_formation_ptr();
    operator SdaiProduct_definition_relationship_ptr();
    operator SdaiProperty_definition_ptr();

    //  part 3
        SdaiCharacterized_definition_ptr_c definition_() const;
        SdaiCharacterized_definition_ptr   definition_();
        void definition_( const SdaiCharacterized_definition_ptr x );

        SdaiProduct_definition_ptr_c related_product_definition_() const;
        SdaiProduct_definition_ptr   related_product_definition_();
        void related_product_definition_( const SdaiProduct_definition_ptr x );

        SdaiProduct_definition_ptr_c relating_product_definition_() const;
        SdaiProduct_definition_ptr   relating_product_definition_();
        void relating_product_definition_( const SdaiProduct_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 );

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

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


    //  part 4
    SdaiAction_request_item& operator =( const SdaiProduct_definition_ptr& );
    SdaiAction_request_item& operator =( const SdaiProduct_definition_formation_ptr& );
    SdaiAction_request_item& operator =( const SdaiProduct_definition_relationship_ptr& );
    SdaiAction_request_item& operator =( const SdaiProperty_definition_ptr& );
    // not in SDAI
    SdaiAction_request_item& ShallowCopy ( const SdaiAction_request_item& );

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

    //  part 5
    Logical IsProduct_definition() const;
    Logical IsProduct_definition_formation() const;
    Logical IsProduct_definition_relationship() const;
    Logical IsProperty_definition() const;

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

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

inline SDAI_Select * create_SdaiAction_request_item () { return new SdaiAction_request_item; }
typedef SdaiAction_request_item * SdaiAction_request_itemH;
typedef SdaiAction_request_item_ptr SdaiAction_request_item_var;


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

  public:
    SdaiAction_request_item_agg( SelectTypeDescriptor * =pdm_schema::t_action_request_item );
    ~SdaiAction_request_item_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiAction_request_item( sel_type )); }
};
inline STEPaggregate * create_SdaiAction_request_item_agg () { return new SdaiAction_request_item_agg; }
typedef SdaiAction_request_item_agg_ptr SdaiAction_request_item_agg_var;

/////  END SELECT TYPE action_request_item

void init_SdaiAction_request_item(Registry& reg);

#endif
