#ifndef  TYPE_SDAIDERIVED_PROPERTY_SELECT_H
#define  TYPE_SDAIDERIVED_PROPERTY_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 SdaiDerived_property_select
class SC_SCHEMA_EXPORT SdaiDerived_property_select  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   PROPERTY_DEFINITION    --  sdaiINSTANCE
    //   ACTION_PROPERTY    --  sdaiINSTANCE
    //   RESOURCE_PROPERTY    --  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
    SdaiDerived_property_select( const SelectTypeDescriptor * =process_planning_schema::t_derived_property_select );
    //  part 1
    SdaiDerived_property_select( const SdaiProperty_definition_ptr&,
                                 const SelectTypeDescriptor * =process_planning_schema::t_derived_property_select );
    SdaiDerived_property_select( const SdaiAction_property_ptr&,
                                 const SelectTypeDescriptor * =process_planning_schema::t_derived_property_select );
    SdaiDerived_property_select( const SdaiResource_property_ptr&,
                                 const SelectTypeDescriptor * =process_planning_schema::t_derived_property_select );
    virtual ~SdaiDerived_property_select();

    //  part 2
    operator SdaiProperty_definition_ptr();
    operator SdaiAction_property_ptr();
    operator SdaiResource_property_ptr();

    //  part 3
        SdaiCharacterized_resource_definition_ptr_c resource_() const;
        SdaiCharacterized_resource_definition_ptr   resource_();
        void resource_( const SdaiCharacterized_resource_definition_ptr x );

        SdaiCharacterized_definition_ptr_c definition_() const;
        SdaiCharacterized_definition_ptr   definition_();
        void definition_( const SdaiCharacterized_definition_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
    SdaiDerived_property_select& operator =( const SdaiProperty_definition_ptr& );
    SdaiDerived_property_select& operator =( const SdaiAction_property_ptr& );
    SdaiDerived_property_select& operator =( const SdaiResource_property_ptr& );
    // not in SDAI
    SdaiDerived_property_select& ShallowCopy ( const SdaiDerived_property_select& );

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

    //  part 5
    Logical IsProperty_definition() const;
    Logical IsAction_property() const;
    Logical IsResource_property() const;

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

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

inline SDAI_Select * create_SdaiDerived_property_select () { return new SdaiDerived_property_select; }
typedef SdaiDerived_property_select * SdaiDerived_property_selectH;
typedef SdaiDerived_property_select_ptr SdaiDerived_property_select_var;


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

  public:
    SdaiDerived_property_select_agg( SelectTypeDescriptor * =process_planning_schema::t_derived_property_select );
    ~SdaiDerived_property_select_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiDerived_property_select( sel_type )); }
};
inline STEPaggregate * create_SdaiDerived_property_select_agg () { return new SdaiDerived_property_select_agg; }
typedef SdaiDerived_property_select_agg_ptr SdaiDerived_property_select_agg_var;

/////  END SELECT TYPE derived_property_select

void init_SdaiDerived_property_select(Registry& reg);

#endif
