#ifndef  TYPE_SDAICHARACTERIZED_RESOURCE_DEFINITION_H
#define  TYPE_SDAICHARACTERIZED_RESOURCE_DEFINITION_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 SdaiCharacterized_resource_definition
class SC_SCHEMA_EXPORT SdaiCharacterized_resource_definition  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   ACTION_RESOURCE    --  sdaiINSTANCE
    //   ACTION_RESOURCE_RELATIONSHIP    --  sdaiINSTANCE
    //   ACTION_RESOURCE_REQUIREMENT    --  sdaiINSTANCE
    //   ACTION_RESOURCE_REQUIREMENT_RELATIONSHIP    --  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
    SdaiCharacterized_resource_definition( const SelectTypeDescriptor * =integrated_cnc_schema::t_characterized_resource_definition );
    //  part 1
    SdaiCharacterized_resource_definition( const SdaiAction_resource_ptr&,
                                           const SelectTypeDescriptor * =integrated_cnc_schema::t_characterized_resource_definition );
    SdaiCharacterized_resource_definition( const SdaiAction_resource_relationship_ptr&,
                                           const SelectTypeDescriptor * =integrated_cnc_schema::t_characterized_resource_definition );
    SdaiCharacterized_resource_definition( const SdaiAction_resource_requirement_ptr&,
                                           const SelectTypeDescriptor * =integrated_cnc_schema::t_characterized_resource_definition );
    SdaiCharacterized_resource_definition( const SdaiAction_resource_requirement_relationship_ptr&,
                                           const SelectTypeDescriptor * =integrated_cnc_schema::t_characterized_resource_definition );
    virtual ~SdaiCharacterized_resource_definition();

    //  part 2
    operator SdaiAction_resource_ptr();
    operator SdaiAction_resource_relationship_ptr();
    operator SdaiAction_resource_requirement_ptr();
    operator SdaiAction_resource_requirement_relationship_ptr();

    //  part 3
        SdaiAction_resource_requirement_ptr_c related_action_resource_requirement_() const;
        SdaiAction_resource_requirement_ptr   related_action_resource_requirement_();
        void related_action_resource_requirement_( const SdaiAction_resource_requirement_ptr x );

        SdaiAction_resource_requirement_ptr_c relating_action_resource_requirement_() const;
        SdaiAction_resource_requirement_ptr   relating_action_resource_requirement_();
        void relating_action_resource_requirement_( const SdaiAction_resource_requirement_ptr x );

        SdaiCharacterized_action_definition_agg_ptr_c operations_() const;
        SdaiCharacterized_action_definition_agg_ptr   operations_();
        void operations_( const SdaiCharacterized_action_definition_agg_ptr x );

        SdaiAction_resource_ptr_c related_resource_() const;
        SdaiAction_resource_ptr   related_resource_();
        void related_resource_( const SdaiAction_resource_ptr x );

        SdaiAction_resource_ptr_c relating_resource_() const;
        SdaiAction_resource_ptr   relating_resource_();
        void relating_resource_( const SdaiAction_resource_ptr x );

        SdaiAction_resource_type_ptr_c kind_() const;
        SdaiAction_resource_type_ptr   kind_();
        void kind_( const SdaiAction_resource_type_ptr x );

        SdaiSupported_item_agg_ptr_c usage_() const;
        SdaiSupported_item_agg_ptr   usage_();
        void usage_( const SdaiSupported_item_agg_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
    SdaiCharacterized_resource_definition& operator =( const SdaiAction_resource_ptr& );
    SdaiCharacterized_resource_definition& operator =( const SdaiAction_resource_relationship_ptr& );
    SdaiCharacterized_resource_definition& operator =( const SdaiAction_resource_requirement_ptr& );
    SdaiCharacterized_resource_definition& operator =( const SdaiAction_resource_requirement_relationship_ptr& );
    // not in SDAI
    SdaiCharacterized_resource_definition& ShallowCopy ( const SdaiCharacterized_resource_definition& );

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

    //  part 5
    Logical IsAction_resource() const;
    Logical IsAction_resource_relationship() const;
    Logical IsAction_resource_requirement() const;
    Logical IsAction_resource_requirement_relationship() const;

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

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

inline SDAI_Select * create_SdaiCharacterized_resource_definition () { return new SdaiCharacterized_resource_definition; }
typedef SdaiCharacterized_resource_definition * SdaiCharacterized_resource_definitionH;
typedef SdaiCharacterized_resource_definition_ptr SdaiCharacterized_resource_definition_var;


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

  public:
    SdaiCharacterized_resource_definition_agg( SelectTypeDescriptor * =integrated_cnc_schema::t_characterized_resource_definition );
    ~SdaiCharacterized_resource_definition_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiCharacterized_resource_definition( sel_type )); }
};
inline STEPaggregate * create_SdaiCharacterized_resource_definition_agg () { return new SdaiCharacterized_resource_definition_agg; }
typedef SdaiCharacterized_resource_definition_agg_ptr SdaiCharacterized_resource_definition_agg_var;

/////  END SELECT TYPE characterized_resource_definition

void init_SdaiCharacterized_resource_definition(Registry& reg);

#endif
