#ifndef  TYPE_SDAIDATE_TIME_ITEM_H
#define  TYPE_SDAIDATE_TIME_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 SdaiDate_time_item
class SC_SCHEMA_EXPORT SdaiDate_time_item  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   APPROVAL_PERSON_ORGANIZATION    --  sdaiINSTANCE
    //   CERTIFICATION    --  sdaiINSTANCE
    //   CHANGE    --  sdaiINSTANCE
    //   CHANGE_REQUEST    --  sdaiINSTANCE
    //   CONTRACT    --  sdaiINSTANCE
    //   PRODUCT_DEFINITION    --  sdaiINSTANCE
    //   SECURITY_CLASSIFICATION    --  sdaiINSTANCE
    //   START_REQUEST    --  sdaiINSTANCE
    //   START_WORK    --  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
    SdaiDate_time_item( const SelectTypeDescriptor * =ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim_lf::t_date_time_item );
    //  part 1
    SdaiDate_time_item( const SdaiApproval_person_organization_ptr&,
                        const SelectTypeDescriptor * =ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim_lf::t_date_time_item );
    SdaiDate_time_item( const SdaiCertification_ptr&,
                        const SelectTypeDescriptor * =ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim_lf::t_date_time_item );
    SdaiDate_time_item( const SdaiChange_ptr&,
                        const SelectTypeDescriptor * =ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim_lf::t_date_time_item );
    SdaiDate_time_item( const SdaiChange_request_ptr&,
                        const SelectTypeDescriptor * =ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim_lf::t_date_time_item );
    SdaiDate_time_item( const SdaiContract_ptr&,
                        const SelectTypeDescriptor * =ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim_lf::t_date_time_item );
    SdaiDate_time_item( const SdaiProduct_definition_ptr&,
                        const SelectTypeDescriptor * =ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim_lf::t_date_time_item );
    SdaiDate_time_item( const SdaiSecurity_classification_ptr&,
                        const SelectTypeDescriptor * =ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim_lf::t_date_time_item );
    SdaiDate_time_item( const SdaiStart_request_ptr&,
                        const SelectTypeDescriptor * =ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim_lf::t_date_time_item );
    SdaiDate_time_item( const SdaiStart_work_ptr&,
                        const SelectTypeDescriptor * =ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim_lf::t_date_time_item );
    virtual ~SdaiDate_time_item();

    //  part 2
    operator SdaiApproval_person_organization_ptr();
    operator SdaiCertification_ptr();
    operator SdaiChange_ptr();
    operator SdaiChange_request_ptr();
    operator SdaiContract_ptr();
    operator SdaiProduct_definition_ptr();
    operator SdaiSecurity_classification_ptr();
    operator SdaiStart_request_ptr();
    operator SdaiStart_work_ptr();

    //  part 3
        SdaiSecurity_classification_level_ptr_c security_level_() const;
        SdaiSecurity_classification_level_ptr   security_level_();
        void security_level_( const SdaiSecurity_classification_level_ptr x );

        SdaiProduct_definition_context_ptr_c frame_of_reference_() const;
        SdaiProduct_definition_context_ptr   frame_of_reference_();
        void frame_of_reference_( const SdaiProduct_definition_context_ptr x );

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

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

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

        SdaiVersioned_action_request_ptr_c assigned_action_request_() const;
        SdaiVersioned_action_request_ptr   assigned_action_request_();
        void assigned_action_request_( const SdaiVersioned_action_request_ptr x );

        SdaiWork_item_agg_ptr_c items_() const;
        SdaiWork_item_agg_ptr   items_();
        void items_( const SdaiWork_item_agg_ptr x );

        SdaiAction_ptr_c assigned_action_() const;
        SdaiAction_ptr   assigned_action_();
        void assigned_action_( const SdaiAction_ptr 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 );

        SdaiApproval_role_ptr_c role_() const;
        SdaiApproval_role_ptr   role_();
        void role_( const SdaiApproval_role_ptr x );

        SdaiApproval_ptr_c authorized_approval_() const;
        SdaiApproval_ptr   authorized_approval_();
        void authorized_approval_( const SdaiApproval_ptr x );

        SdaiPerson_organization_select_ptr_c person_organization_() const;
        SdaiPerson_organization_select_ptr   person_organization_();
        void person_organization_( const SdaiPerson_organization_select_ptr x );


    //  part 4
    SdaiDate_time_item& operator =( const SdaiApproval_person_organization_ptr& );
    SdaiDate_time_item& operator =( const SdaiCertification_ptr& );
    SdaiDate_time_item& operator =( const SdaiChange_ptr& );
    SdaiDate_time_item& operator =( const SdaiChange_request_ptr& );
    SdaiDate_time_item& operator =( const SdaiContract_ptr& );
    SdaiDate_time_item& operator =( const SdaiProduct_definition_ptr& );
    SdaiDate_time_item& operator =( const SdaiSecurity_classification_ptr& );
    SdaiDate_time_item& operator =( const SdaiStart_request_ptr& );
    SdaiDate_time_item& operator =( const SdaiStart_work_ptr& );
    // not in SDAI
    SdaiDate_time_item& ShallowCopy ( const SdaiDate_time_item& );

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

    //  part 5
    Logical IsApproval_person_organization() const;
    Logical IsCertification() const;
    Logical IsChange() const;
    Logical IsChange_request() const;
    Logical IsContract() const;
    Logical IsProduct_definition() const;
    Logical IsSecurity_classification() const;
    Logical IsStart_request() const;
    Logical IsStart_work() const;

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

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

inline SDAI_Select * create_SdaiDate_time_item () { return new SdaiDate_time_item; }
typedef SdaiDate_time_item * SdaiDate_time_itemH;
typedef SdaiDate_time_item_ptr SdaiDate_time_item_var;


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

  public:
    SdaiDate_time_item_agg( SelectTypeDescriptor * =ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim_lf::t_date_time_item );
    ~SdaiDate_time_item_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiDate_time_item( sel_type )); }
};
inline STEPaggregate * create_SdaiDate_time_item_agg () { return new SdaiDate_time_item_agg; }
typedef SdaiDate_time_item_agg_ptr SdaiDate_time_item_agg_var;

/////  END SELECT TYPE date_time_item

void init_SdaiDate_time_item(Registry& reg);

#endif
