#ifndef  TYPE_SDAIACTION_ITEM_H
#define  TYPE_SDAIACTION_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_item
class SC_SCHEMA_EXPORT SdaiAction_item  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   FEATURE_DEPENDENCY    --  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
    SdaiAction_item( const SelectTypeDescriptor * =process_planning_schema::t_action_item );
    //  part 1
    SdaiAction_item( const SdaiFeature_dependency_ptr&,
                     const SelectTypeDescriptor * =process_planning_schema::t_action_item );
    SdaiAction_item( const SdaiProduct_definition_formation_ptr&,
                     const SelectTypeDescriptor * =process_planning_schema::t_action_item );
    virtual ~SdaiAction_item();

    //  part 2
    operator SdaiFeature_dependency_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 );

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

        SdaiGroup_ptr_c related_group_() const;
        SdaiGroup_ptr   related_group_();
        void related_group_( const SdaiGroup_ptr x );

        SdaiGroup_ptr_c relating_group_() const;
        SdaiGroup_ptr   relating_group_();
        void relating_group_( const SdaiGroup_ptr 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
    SdaiAction_item& operator =( const SdaiFeature_dependency_ptr& );
    SdaiAction_item& operator =( const SdaiProduct_definition_formation_ptr& );
    // not in SDAI
    SdaiAction_item& ShallowCopy ( const SdaiAction_item& );

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

    //  part 5
    Logical IsFeature_dependency() 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_SdaiAction_item () { return new SdaiAction_item; }
typedef SdaiAction_item * SdaiAction_itemH;
typedef SdaiAction_item_ptr SdaiAction_item_var;


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

  public:
    SdaiAction_item_agg( SelectTypeDescriptor * =process_planning_schema::t_action_item );
    ~SdaiAction_item_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiAction_item( sel_type )); }
};
inline STEPaggregate * create_SdaiAction_item_agg () { return new SdaiAction_item_agg; }
typedef SdaiAction_item_agg_ptr SdaiAction_item_agg_var;

/////  END SELECT TYPE action_item

void init_SdaiAction_item(Registry& reg);

#endif
