#ifndef  TYPE_SDAIORGANIZATION_ITEM_H
#define  TYPE_SDAIORGANIZATION_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 SdaiOrganization_item
class SC_SCHEMA_EXPORT SdaiOrganization_item  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   ACTION    --  sdaiINSTANCE
    //   APPLIED_ACTION_ASSIGNMENT    --  sdaiINSTANCE
    //   APPLIED_IDENTIFICATION_ASSIGNMENT    --  sdaiINSTANCE
    //   APPROVAL    --  sdaiINSTANCE
    //   CONFIGURATION_ITEM    --  sdaiINSTANCE
    //   CONTRACT    --  sdaiINSTANCE
    //   DOCUMENT_FILE    --  sdaiINSTANCE
    //   PRODUCT    --  sdaiINSTANCE
    //   PRODUCT_DEFINITION    --  sdaiINSTANCE
    //   PRODUCT_DEFINITION_FORMATION    --  sdaiINSTANCE
    //   SECURITY_CLASSIFICATION    --  sdaiINSTANCE
    //   VERSIONED_ACTION_REQUEST    --  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
    SdaiOrganization_item( const SelectTypeDescriptor * =pdm_schema::t_organization_item );
    //  part 1
    SdaiOrganization_item( const SdaiAction_ptr&,
                           const SelectTypeDescriptor * =pdm_schema::t_organization_item );
    SdaiOrganization_item( const SdaiApplied_action_assignment_ptr&,
                           const SelectTypeDescriptor * =pdm_schema::t_organization_item );
    SdaiOrganization_item( const SdaiApplied_identification_assignment_ptr&,
                           const SelectTypeDescriptor * =pdm_schema::t_organization_item );
    SdaiOrganization_item( const SdaiApproval_ptr&,
                           const SelectTypeDescriptor * =pdm_schema::t_organization_item );
    SdaiOrganization_item( const SdaiConfiguration_item_ptr&,
                           const SelectTypeDescriptor * =pdm_schema::t_organization_item );
    SdaiOrganization_item( const SdaiContract_ptr&,
                           const SelectTypeDescriptor * =pdm_schema::t_organization_item );
    SdaiOrganization_item( const SdaiDocument_file_ptr&,
                           const SelectTypeDescriptor * =pdm_schema::t_organization_item );
    SdaiOrganization_item( const SdaiProduct_ptr&,
                           const SelectTypeDescriptor * =pdm_schema::t_organization_item );
    SdaiOrganization_item( const SdaiProduct_definition_ptr&,
                           const SelectTypeDescriptor * =pdm_schema::t_organization_item );
    SdaiOrganization_item( const SdaiProduct_definition_formation_ptr&,
                           const SelectTypeDescriptor * =pdm_schema::t_organization_item );
    SdaiOrganization_item( const SdaiSecurity_classification_ptr&,
                           const SelectTypeDescriptor * =pdm_schema::t_organization_item );
    SdaiOrganization_item( const SdaiVersioned_action_request_ptr&,
                           const SelectTypeDescriptor * =pdm_schema::t_organization_item );
    virtual ~SdaiOrganization_item();

    //  part 2
    operator SdaiAction_ptr();
    operator SdaiApplied_action_assignment_ptr();
    operator SdaiApplied_identification_assignment_ptr();
    operator SdaiApproval_ptr();
    operator SdaiConfiguration_item_ptr();
    operator SdaiContract_ptr();
    operator SdaiDocument_file_ptr();
    operator SdaiProduct_ptr();
    operator SdaiProduct_definition_ptr();
    operator SdaiProduct_definition_formation_ptr();
    operator SdaiSecurity_classification_ptr();
    operator SdaiVersioned_action_request_ptr();

    //  part 3
  const SdaiLabel   version_() const;
        SdaiLabel   version_();
        void version_( const SdaiLabel x );

        SdaiSecurity_classification_level_ptr_c security_level_() const;
        SdaiSecurity_classification_level_ptr   security_level_();
        void security_level_( const SdaiSecurity_classification_level_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 );

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

        SdaiContract_type_ptr_c kind_() const;
        SdaiContract_type_ptr   kind_();
        void kind_( const SdaiContract_type_ptr x );

  const SdaiLabel   purpose_() const;
        SdaiLabel   purpose_();
        void purpose_( const SdaiLabel x );

        SdaiProduct_concept_ptr_c item_concept_() const;
        SdaiProduct_concept_ptr   item_concept_();
        void item_concept_( const SdaiProduct_concept_ptr x );

  const SdaiLabel   level_() const;
        SdaiLabel   level_();
        void level_( const SdaiLabel x );

        SdaiApproval_status_ptr_c status_() const;
        SdaiApproval_status_ptr   status_();
        void status_( const SdaiApproval_status_ptr x );

  const SdaiIdentifier   assigned_id_() const;
        SdaiIdentifier   assigned_id_();
        void assigned_id_( const SdaiIdentifier x );

        SdaiAction_item_agg_ptr_c items_() const;
        SdaiAction_item_agg_ptr   items_();
        void items_( const SdaiAction_item_agg_ptr x );

        SdaiAction_ptr_c assigned_action_() const;
        SdaiAction_ptr   assigned_action_();
        void assigned_action_( const SdaiAction_ptr 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
    SdaiOrganization_item& operator =( const SdaiAction_ptr& );
    SdaiOrganization_item& operator =( const SdaiApplied_action_assignment_ptr& );
    SdaiOrganization_item& operator =( const SdaiApplied_identification_assignment_ptr& );
    SdaiOrganization_item& operator =( const SdaiApproval_ptr& );
    SdaiOrganization_item& operator =( const SdaiConfiguration_item_ptr& );
    SdaiOrganization_item& operator =( const SdaiContract_ptr& );
    SdaiOrganization_item& operator =( const SdaiDocument_file_ptr& );
    SdaiOrganization_item& operator =( const SdaiProduct_ptr& );
    SdaiOrganization_item& operator =( const SdaiProduct_definition_ptr& );
    SdaiOrganization_item& operator =( const SdaiProduct_definition_formation_ptr& );
    SdaiOrganization_item& operator =( const SdaiSecurity_classification_ptr& );
    SdaiOrganization_item& operator =( const SdaiVersioned_action_request_ptr& );
    // not in SDAI
    SdaiOrganization_item& ShallowCopy ( const SdaiOrganization_item& );

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

    //  part 5
    Logical IsAction() const;
    Logical IsApplied_action_assignment() const;
    Logical IsApplied_identification_assignment() const;
    Logical IsApproval() const;
    Logical IsConfiguration_item() const;
    Logical IsContract() const;
    Logical IsDocument_file() const;
    Logical IsProduct() const;
    Logical IsProduct_definition() const;
    Logical IsProduct_definition_formation() const;
    Logical IsSecurity_classification() const;
    Logical IsVersioned_action_request() const;

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

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

inline SDAI_Select * create_SdaiOrganization_item () { return new SdaiOrganization_item; }
typedef SdaiOrganization_item * SdaiOrganization_itemH;
typedef SdaiOrganization_item_ptr SdaiOrganization_item_var;


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

  public:
    SdaiOrganization_item_agg( SelectTypeDescriptor * =pdm_schema::t_organization_item );
    ~SdaiOrganization_item_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiOrganization_item( sel_type )); }
};
inline STEPaggregate * create_SdaiOrganization_item_agg () { return new SdaiOrganization_item_agg; }
typedef SdaiOrganization_item_agg_ptr SdaiOrganization_item_agg_var;

/////  END SELECT TYPE organization_item

void init_SdaiOrganization_item(Registry& reg);

#endif
