#ifndef  TYPE_SDAIDEFINED_METHODS_H
#define  TYPE_SDAIDEFINED_METHODS_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 SdaiDefined_methods
class SC_SCHEMA_EXPORT SdaiDefined_methods  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   ACTIVITY    --  sdaiINSTANCE
    //   ACTIVITY_METHOD    --  sdaiINSTANCE
    //   REQUIRED_RESOURCE    --  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
    SdaiDefined_methods( const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_defined_methods );
    //  part 1
    SdaiDefined_methods( const SdaiActivity_ptr&,
                         const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_defined_methods );
    SdaiDefined_methods( const SdaiActivity_method_ptr&,
                         const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_defined_methods );
    SdaiDefined_methods( const SdaiRequired_resource_ptr&,
                         const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_defined_methods );
    virtual ~SdaiDefined_methods();

    //  part 2
    operator SdaiActivity_ptr();
    operator SdaiActivity_method_ptr();
    operator SdaiRequired_resource_ptr();

    //  part 3
        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   purpose_() const;
        SDAI_String   purpose_();
        void purpose_( const SDAI_String x );

  const SDAI_String   consequence_() const;
        SDAI_String   consequence_();
        void consequence_( const SDAI_String 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
    SdaiDefined_methods& operator =( const SdaiActivity_ptr& );
    SdaiDefined_methods& operator =( const SdaiActivity_method_ptr& );
    SdaiDefined_methods& operator =( const SdaiRequired_resource_ptr& );
    // not in SDAI
    SdaiDefined_methods& ShallowCopy ( const SdaiDefined_methods& );

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

    //  part 5
    Logical IsActivity() const;
    Logical IsActivity_method() const;
    Logical IsRequired_resource() const;

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

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

inline SDAI_Select * create_SdaiDefined_methods () { return new SdaiDefined_methods; }
typedef SdaiDefined_methods * SdaiDefined_methodsH;
typedef SdaiDefined_methods_ptr SdaiDefined_methods_var;


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

  public:
    SdaiDefined_methods_agg( SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_defined_methods );
    ~SdaiDefined_methods_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiDefined_methods( sel_type )); }
};
inline STEPaggregate * create_SdaiDefined_methods_agg () { return new SdaiDefined_methods_agg; }
typedef SdaiDefined_methods_agg_ptr SdaiDefined_methods_agg_var;

/////  END SELECT TYPE defined_methods

void init_SdaiDefined_methods(Registry& reg);

#endif
