#ifndef  TYPE_SDAIRESOURCE_AS_REALIZED_ITEM_H
#define  TYPE_SDAIRESOURCE_AS_REALIZED_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 SdaiResource_as_realized_item
class SC_SCHEMA_EXPORT SdaiResource_as_realized_item  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   ACTIVITY_ACTUAL    --  sdaiINSTANCE
    //   APPLIED_ACTIVITY_ASSIGNMENT    --  sdaiINSTANCE
    //   EVENT    --  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
    SdaiResource_as_realized_item( const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_resource_as_realized_item );
    //  part 1
    SdaiResource_as_realized_item( const SdaiActivity_actual_ptr&,
                                   const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_resource_as_realized_item );
    SdaiResource_as_realized_item( const SdaiApplied_activity_assignment_ptr&,
                                   const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_resource_as_realized_item );
    SdaiResource_as_realized_item( const SdaiEvent_ptr&,
                                   const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_resource_as_realized_item );
    virtual ~SdaiResource_as_realized_item();

    //  part 2
    operator SdaiActivity_actual_ptr();
    operator SdaiApplied_activity_assignment_ptr();
    operator SdaiEvent_ptr();

    //  part 3
        SdaiDate_or_date_time_select_ptr_c planned_start_date_() const;
        SdaiDate_or_date_time_select_ptr   planned_start_date_();
        void planned_start_date_( const SdaiDate_or_date_time_select_ptr x );

        SdaiDate_or_date_time_select_ptr_c actual_start_date_() const;
        SdaiDate_or_date_time_select_ptr   actual_start_date_();
        void actual_start_date_( const SdaiDate_or_date_time_select_ptr x );

  const SDAI_String   role_() const;
        SDAI_String   role_();
        void role_( const SDAI_String x );

        SdaiActivity_item_agg_ptr_c items_() const;
        SdaiActivity_item_agg_ptr   items_();
        void items_( const SdaiActivity_item_agg_ptr x );

        SdaiActivity_ptr_c assigned_activity_() const;
        SdaiActivity_ptr   assigned_activity_();
        void assigned_activity_( const SdaiActivity_ptr x );

        SdaiActivity_method_ptr_c chosen_method_() const;
        SdaiActivity_method_ptr   chosen_method_();
        void chosen_method_( const SdaiActivity_method_ptr x );

  const SDAI_String   description_() const;
        SDAI_String   description_();
        void description_( const SDAI_String x );

  const SDAI_String   name_() const;
        SDAI_String   name_();
        void name_( const SDAI_String x );

  const SDAI_String   id_() const;
        SDAI_String   id_();
        void id_( const SDAI_String x );


    //  part 4
    SdaiResource_as_realized_item& operator =( const SdaiActivity_actual_ptr& );
    SdaiResource_as_realized_item& operator =( const SdaiApplied_activity_assignment_ptr& );
    SdaiResource_as_realized_item& operator =( const SdaiEvent_ptr& );
    // not in SDAI
    SdaiResource_as_realized_item& ShallowCopy ( const SdaiResource_as_realized_item& );

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

    //  part 5
    Logical IsActivity_actual() const;
    Logical IsApplied_activity_assignment() const;
    Logical IsEvent() const;

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

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

inline SDAI_Select * create_SdaiResource_as_realized_item () { return new SdaiResource_as_realized_item; }
typedef SdaiResource_as_realized_item * SdaiResource_as_realized_itemH;
typedef SdaiResource_as_realized_item_ptr SdaiResource_as_realized_item_var;


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

  public:
    SdaiResource_as_realized_item_agg( SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_resource_as_realized_item );
    ~SdaiResource_as_realized_item_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiResource_as_realized_item( sel_type )); }
};
inline STEPaggregate * create_SdaiResource_as_realized_item_agg () { return new SdaiResource_as_realized_item_agg; }
typedef SdaiResource_as_realized_item_agg_ptr SdaiResource_as_realized_item_agg_var;

/////  END SELECT TYPE resource_as_realized_item

void init_SdaiResource_as_realized_item(Registry& reg);

#endif
