#ifndef  TYPE_SDAIRESOURCE_AS_REALIZED_RELATIONSHIP_SELECT_H
#define  TYPE_SDAIRESOURCE_AS_REALIZED_RELATIONSHIP_SELECT_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_relationship_select
class SC_SCHEMA_EXPORT SdaiResource_as_realized_relationship_select  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   REQUIRED_RESOURCE    --  sdaiINSTANCE
    //   RESOURCE_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_relationship_select( const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_resource_as_realized_relationship_select );
    //  part 1
    SdaiResource_as_realized_relationship_select( const SdaiRequired_resource_ptr&,
                                                  const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_resource_as_realized_relationship_select );
    SdaiResource_as_realized_relationship_select( const SdaiResource_event_ptr&,
                                                  const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_resource_as_realized_relationship_select );
    virtual ~SdaiResource_as_realized_relationship_select();

    //  part 2
    operator SdaiRequired_resource_ptr();
    operator SdaiResource_event_ptr();

    //  part 3
        SdaiManaged_resource_ptr_c resource_() const;
        SdaiManaged_resource_ptr   resource_();
        void resource_( const SdaiManaged_resource_ptr x );

        SdaiValue_with_unit_ptr_c quantity_() const;
        SdaiValue_with_unit_ptr   quantity_();
        void quantity_( const SdaiValue_with_unit_ptr x );

        SdaiValue_with_unit_ptr_c required_quantity_() const;
        SdaiValue_with_unit_ptr   required_quantity_();
        void required_quantity_( const SdaiValue_with_unit_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 );


    //  part 4
    SdaiResource_as_realized_relationship_select& operator =( const SdaiRequired_resource_ptr& );
    SdaiResource_as_realized_relationship_select& operator =( const SdaiResource_event_ptr& );
    // not in SDAI
    SdaiResource_as_realized_relationship_select& ShallowCopy ( const SdaiResource_as_realized_relationship_select& );

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

    //  part 5
    Logical IsRequired_resource() const;
    Logical IsResource_event() const;

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

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

inline SDAI_Select * create_SdaiResource_as_realized_relationship_select () { return new SdaiResource_as_realized_relationship_select; }
typedef SdaiResource_as_realized_relationship_select * SdaiResource_as_realized_relationship_selectH;
typedef SdaiResource_as_realized_relationship_select_ptr SdaiResource_as_realized_relationship_select_var;


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

  public:
    SdaiResource_as_realized_relationship_select_agg( SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_resource_as_realized_relationship_select );
    ~SdaiResource_as_realized_relationship_select_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiResource_as_realized_relationship_select( sel_type )); }
};
inline STEPaggregate * create_SdaiResource_as_realized_relationship_select_agg () { return new SdaiResource_as_realized_relationship_select_agg; }
typedef SdaiResource_as_realized_relationship_select_agg_ptr SdaiResource_as_realized_relationship_select_agg_var;

/////  END SELECT TYPE resource_as_realized_relationship_select

void init_SdaiResource_as_realized_relationship_select(Registry& reg);

#endif
