#ifndef  TYPE_SDAIDEFINED_ACTIVITIES_H
#define  TYPE_SDAIDEFINED_ACTIVITIES_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_activities
class SC_SCHEMA_EXPORT SdaiDefined_activities  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   ACTIVITY_ACTUAL    --  sdaiINSTANCE
    //   RESOURCE_AS_REALIZED    --  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_activities( const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_defined_activities );
    //  part 1
    SdaiDefined_activities( const SdaiActivity_actual_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_defined_activities );
    SdaiDefined_activities( const SdaiResource_as_realized_ptr&,
                            const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_defined_activities );
    virtual ~SdaiDefined_activities();

    //  part 2
    operator SdaiActivity_actual_ptr();
    operator SdaiResource_as_realized_ptr();

    //  part 3
        SdaiValue_with_unit_ptr_c quantity_() const;
        SdaiValue_with_unit_ptr   quantity_();
        void quantity_( const SdaiValue_with_unit_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
    SdaiDefined_activities& operator =( const SdaiActivity_actual_ptr& );
    SdaiDefined_activities& operator =( const SdaiResource_as_realized_ptr& );
    // not in SDAI
    SdaiDefined_activities& ShallowCopy ( const SdaiDefined_activities& );

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

    //  part 5
    Logical IsActivity_actual() const;
    Logical IsResource_as_realized() const;

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

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

inline SDAI_Select * create_SdaiDefined_activities () { return new SdaiDefined_activities; }
typedef SdaiDefined_activities * SdaiDefined_activitiesH;
typedef SdaiDefined_activities_ptr SdaiDefined_activities_var;


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

  public:
    SdaiDefined_activities_agg( SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_defined_activities );
    ~SdaiDefined_activities_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiDefined_activities( sel_type )); }
};
inline STEPaggregate * create_SdaiDefined_activities_agg () { return new SdaiDefined_activities_agg; }
typedef SdaiDefined_activities_agg_ptr SdaiDefined_activities_agg_var;

/////  END SELECT TYPE defined_activities

void init_SdaiDefined_activities(Registry& reg);

#endif
