#ifndef  TYPE_SDAICERTIFICATION_ITEM_H
#define  TYPE_SDAICERTIFICATION_ITEM_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 SdaiCertification_item
class SC_SCHEMA_EXPORT SdaiCertification_item  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   ACTION    --  sdaiINSTANCE
    //   ACTION_METHOD    --  sdaiINSTANCE
    //   MATERIAL_PROPERTY    --  sdaiINSTANCE
    //   ORGANIZATION    --  sdaiINSTANCE
    //   PRODUCT    --  sdaiINSTANCE
    //   PRODUCT_DEFINITION    --  sdaiINSTANCE
    //   PRODUCT_DEFINITION_FORMATION    --  sdaiINSTANCE
    //   PERSON_AND_ORGANIZATION    --  sdaiINSTANCE
    //   PROPERTY_DEFINITION    --  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
    SdaiCertification_item( const SelectTypeDescriptor * =engineering_properties_schema::t_certification_item );
    //  part 1
    SdaiCertification_item( const SdaiAction_ptr&,
                            const SelectTypeDescriptor * =engineering_properties_schema::t_certification_item );
    SdaiCertification_item( const SdaiAction_method_ptr&,
                            const SelectTypeDescriptor * =engineering_properties_schema::t_certification_item );
    SdaiCertification_item( const SdaiMaterial_property_ptr&,
                            const SelectTypeDescriptor * =engineering_properties_schema::t_certification_item );
    SdaiCertification_item( const SdaiOrganization_ptr&,
                            const SelectTypeDescriptor * =engineering_properties_schema::t_certification_item );
    SdaiCertification_item( const SdaiProduct_ptr&,
                            const SelectTypeDescriptor * =engineering_properties_schema::t_certification_item );
    SdaiCertification_item( const SdaiProduct_definition_ptr&,
                            const SelectTypeDescriptor * =engineering_properties_schema::t_certification_item );
    SdaiCertification_item( const SdaiProduct_definition_formation_ptr&,
                            const SelectTypeDescriptor * =engineering_properties_schema::t_certification_item );
    SdaiCertification_item( const SdaiPerson_and_organization_ptr&,
                            const SelectTypeDescriptor * =engineering_properties_schema::t_certification_item );
    SdaiCertification_item( const SdaiProperty_definition_ptr&,
                            const SelectTypeDescriptor * =engineering_properties_schema::t_certification_item );
    virtual ~SdaiCertification_item();

    //  part 2
    operator SdaiAction_ptr();
    operator SdaiAction_method_ptr();
    operator SdaiMaterial_property_ptr();
    operator SdaiOrganization_ptr();
    operator SdaiProduct_ptr();
    operator SdaiProduct_definition_ptr();
    operator SdaiProduct_definition_formation_ptr();
    operator SdaiPerson_and_organization_ptr();
    operator SdaiProperty_definition_ptr();

    //  part 3
        SdaiOrganization_ptr_c the_organization_() const;
        SdaiOrganization_ptr   the_organization_();
        void the_organization_( const SdaiOrganization_ptr x );

        SdaiPerson_ptr_c the_person_() const;
        SdaiPerson_ptr   the_person_();
        void the_person_( const SdaiPerson_ptr x );

        SdaiProduct_ptr_c of_product_() const;
        SdaiProduct_ptr   of_product_();
        void of_product_( const SdaiProduct_ptr x );

        SdaiProduct_definition_formation_ptr_c formation_() const;
        SdaiProduct_definition_formation_ptr   formation_();
        void formation_( const SdaiProduct_definition_formation_ptr x );

        EntityAggregate_ptr_c frame_of_reference_() const;
        EntityAggregate_ptr   frame_of_reference_();
        void frame_of_reference_( const EntityAggregate_ptr x );

        SdaiCharacterized_definition_ptr_c definition_() const;
        SdaiCharacterized_definition_ptr   definition_();
        void definition_( const SdaiCharacterized_definition_ptr x );

  const SdaiText   purpose_() const;
        SdaiText   purpose_();
        void purpose_( const SdaiText x );

  const SdaiText   consequence_() const;
        SdaiText   consequence_();
        void consequence_( const SdaiText x );

        SdaiAction_method_ptr_c chosen_method_() const;
        SdaiAction_method_ptr   chosen_method_();
        void chosen_method_( const SdaiAction_method_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
    SdaiCertification_item& operator =( const SdaiAction_ptr& );
    SdaiCertification_item& operator =( const SdaiAction_method_ptr& );
    SdaiCertification_item& operator =( const SdaiMaterial_property_ptr& );
    SdaiCertification_item& operator =( const SdaiOrganization_ptr& );
    SdaiCertification_item& operator =( const SdaiProduct_ptr& );
    SdaiCertification_item& operator =( const SdaiProduct_definition_ptr& );
    SdaiCertification_item& operator =( const SdaiProduct_definition_formation_ptr& );
    SdaiCertification_item& operator =( const SdaiPerson_and_organization_ptr& );
    SdaiCertification_item& operator =( const SdaiProperty_definition_ptr& );
    // not in SDAI
    SdaiCertification_item& ShallowCopy ( const SdaiCertification_item& );

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

    //  part 5
    Logical IsAction() const;
    Logical IsAction_method() const;
    Logical IsMaterial_property() const;
    Logical IsOrganization() const;
    Logical IsProduct() const;
    Logical IsProduct_definition() const;
    Logical IsProduct_definition_formation() const;
    Logical IsPerson_and_organization() const;
    Logical IsProperty_definition() const;

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

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

inline SDAI_Select * create_SdaiCertification_item () { return new SdaiCertification_item; }
typedef SdaiCertification_item * SdaiCertification_itemH;
typedef SdaiCertification_item_ptr SdaiCertification_item_var;


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

  public:
    SdaiCertification_item_agg( SelectTypeDescriptor * =engineering_properties_schema::t_certification_item );
    ~SdaiCertification_item_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiCertification_item( sel_type )); }
};
inline STEPaggregate * create_SdaiCertification_item_agg () { return new SdaiCertification_item_agg; }
typedef SdaiCertification_item_agg_ptr SdaiCertification_item_agg_var;

/////  END SELECT TYPE certification_item

void init_SdaiCertification_item(Registry& reg);

#endif
