#ifndef  TYPE_SDAIIDENTIFICATION_ITEM_H
#define  TYPE_SDAIIDENTIFICATION_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 SdaiIdentification_item
class SC_SCHEMA_EXPORT SdaiIdentification_item  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   CERTIFICATION    --  sdaiINSTANCE
    //   DOCUMENT    --  sdaiINSTANCE
    //   PRODUCT    --  sdaiINSTANCE
    //   PRODUCT_DEFINITION    --  sdaiINSTANCE
    //   ORGANIZATION    --  sdaiINSTANCE
    //   PERSON_AND_ORGANIZATION    --  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
    SdaiIdentification_item( const SelectTypeDescriptor * =engineering_properties_schema::t_identification_item );
    //  part 1
    SdaiIdentification_item( const SdaiCertification_ptr&,
                             const SelectTypeDescriptor * =engineering_properties_schema::t_identification_item );
    SdaiIdentification_item( const SdaiDocument_ptr&,
                             const SelectTypeDescriptor * =engineering_properties_schema::t_identification_item );
    SdaiIdentification_item( const SdaiProduct_ptr&,
                             const SelectTypeDescriptor * =engineering_properties_schema::t_identification_item );
    SdaiIdentification_item( const SdaiProduct_definition_ptr&,
                             const SelectTypeDescriptor * =engineering_properties_schema::t_identification_item );
    SdaiIdentification_item( const SdaiOrganization_ptr&,
                             const SelectTypeDescriptor * =engineering_properties_schema::t_identification_item );
    SdaiIdentification_item( const SdaiPerson_and_organization_ptr&,
                             const SelectTypeDescriptor * =engineering_properties_schema::t_identification_item );
    virtual ~SdaiIdentification_item();

    //  part 2
    operator SdaiCertification_ptr();
    operator SdaiDocument_ptr();
    operator SdaiProduct_ptr();
    operator SdaiProduct_definition_ptr();
    operator SdaiOrganization_ptr();
    operator SdaiPerson_and_organization_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_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 );

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

  const SdaiText   description_() const;
        SdaiText   description_();
        void description_( const SdaiText x );

  const SdaiIdentifier   id_() const;
        SdaiIdentifier   id_();
        void id_( const SdaiIdentifier x );

        SdaiCertification_type_ptr_c kind_() const;
        SdaiCertification_type_ptr   kind_();
        void kind_( const SdaiCertification_type_ptr x );

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

  const SdaiLabel   name_() const;
        SdaiLabel   name_();
        void name_( const SdaiLabel x );


    //  part 4
    SdaiIdentification_item& operator =( const SdaiCertification_ptr& );
    SdaiIdentification_item& operator =( const SdaiDocument_ptr& );
    SdaiIdentification_item& operator =( const SdaiProduct_ptr& );
    SdaiIdentification_item& operator =( const SdaiProduct_definition_ptr& );
    SdaiIdentification_item& operator =( const SdaiOrganization_ptr& );
    SdaiIdentification_item& operator =( const SdaiPerson_and_organization_ptr& );
    // not in SDAI
    SdaiIdentification_item& ShallowCopy ( const SdaiIdentification_item& );

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

    //  part 5
    Logical IsCertification() const;
    Logical IsDocument() const;
    Logical IsProduct() const;
    Logical IsProduct_definition() const;
    Logical IsOrganization() const;
    Logical IsPerson_and_organization() const;

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

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

inline SDAI_Select * create_SdaiIdentification_item () { return new SdaiIdentification_item; }
typedef SdaiIdentification_item * SdaiIdentification_itemH;
typedef SdaiIdentification_item_ptr SdaiIdentification_item_var;


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

  public:
    SdaiIdentification_item_agg( SelectTypeDescriptor * =engineering_properties_schema::t_identification_item );
    ~SdaiIdentification_item_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiIdentification_item( sel_type )); }
};
inline STEPaggregate * create_SdaiIdentification_item_agg () { return new SdaiIdentification_item_agg; }
typedef SdaiIdentification_item_agg_ptr SdaiIdentification_item_agg_var;

/////  END SELECT TYPE identification_item

void init_SdaiIdentification_item(Registry& reg);

#endif
