#ifndef  TYPE_SDAIDATE_AND_TIME_ITEM_H
#define  TYPE_SDAIDATE_AND_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_and_time_item
class SC_SCHEMA_EXPORT SdaiDate_and_time_item  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   ACTION    --  sdaiINSTANCE
    //   ACTION_DIRECTIVE    --  sdaiINSTANCE
    //   APPLIED_ACTION_ASSIGNMENT    --  sdaiINSTANCE
    //   APPLIED_ORGANIZATION_ASSIGNMENT    --  sdaiINSTANCE
    //   APPLIED_PERSON_AND_ORGANIZATION_ASSIGNMENT    --  sdaiINSTANCE
    //   APPLIED_SECURITY_CLASSIFICATION_ASSIGNMENT    --  sdaiINSTANCE
    //   APPROVAL_PERSON_ORGANIZATION    --  sdaiINSTANCE
    //   CERTIFICATION    --  sdaiINSTANCE
    //   CONTRACT    --  sdaiINSTANCE
    //   DIRECTED_ACTION    --  sdaiINSTANCE
    //   DOCUMENT    --  sdaiINSTANCE
    //   DOCUMENT_FILE    --  sdaiINSTANCE
    //   EVENT_OCCURRENCE    --  sdaiINSTANCE
    //   EXECUTED_ACTION    --  sdaiINSTANCE
    //   INFORMATION_USAGE_RIGHT    --  sdaiINSTANCE
    //   ORGANIZATIONAL_PROJECT    --  sdaiINSTANCE
    //   PRODUCT_DEFINITION    --  sdaiINSTANCE
    //   PRODUCT_DEFINITION_FORMATION    --  sdaiINSTANCE
    //   PRODUCT_DEFINITION_RELATIONSHIP    --  sdaiINSTANCE
    //   RULE_ACTION    --  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
    SdaiDate_and_time_item( const SelectTypeDescriptor * =ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::t_date_and_time_item );
    //  part 1
    SdaiDate_and_time_item( const SdaiAction_ptr&,
                            const SelectTypeDescriptor * =ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::t_date_and_time_item );
    SdaiDate_and_time_item( const SdaiAction_directive_ptr&,
                            const SelectTypeDescriptor * =ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::t_date_and_time_item );
    SdaiDate_and_time_item( const SdaiApplied_action_assignment_ptr&,
                            const SelectTypeDescriptor * =ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::t_date_and_time_item );
    SdaiDate_and_time_item( const SdaiApplied_organization_assignment_ptr&,
                            const SelectTypeDescriptor * =ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::t_date_and_time_item );
    SdaiDate_and_time_item( const SdaiApplied_person_and_organization_assignment_ptr&,
                            const SelectTypeDescriptor * =ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::t_date_and_time_item );
    SdaiDate_and_time_item( const SdaiApplied_security_classification_assignment_ptr&,
                            const SelectTypeDescriptor * =ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::t_date_and_time_item );
    SdaiDate_and_time_item( const SdaiApproval_person_organization_ptr&,
                            const SelectTypeDescriptor * =ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::t_date_and_time_item );
    SdaiDate_and_time_item( const SdaiCertification_ptr&,
                            const SelectTypeDescriptor * =ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::t_date_and_time_item );
    SdaiDate_and_time_item( const SdaiContract_ptr&,
                            const SelectTypeDescriptor * =ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::t_date_and_time_item );
    SdaiDate_and_time_item( const SdaiDirected_action_ptr&,
                            const SelectTypeDescriptor * =ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::t_date_and_time_item );
    SdaiDate_and_time_item( const SdaiDocument_ptr&,
                            const SelectTypeDescriptor * =ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::t_date_and_time_item );
    SdaiDate_and_time_item( const SdaiDocument_file_ptr&,
                            const SelectTypeDescriptor * =ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::t_date_and_time_item );
    SdaiDate_and_time_item( const SdaiEvent_occurrence_ptr&,
                            const SelectTypeDescriptor * =ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::t_date_and_time_item );
    SdaiDate_and_time_item( const SdaiExecuted_action_ptr&,
                            const SelectTypeDescriptor * =ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::t_date_and_time_item );
    SdaiDate_and_time_item( const SdaiInformation_usage_right_ptr&,
                            const SelectTypeDescriptor * =ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::t_date_and_time_item );
    SdaiDate_and_time_item( const SdaiOrganizational_project_ptr&,
                            const SelectTypeDescriptor * =ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::t_date_and_time_item );
    SdaiDate_and_time_item( const SdaiProduct_definition_ptr&,
                            const SelectTypeDescriptor * =ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::t_date_and_time_item );
    SdaiDate_and_time_item( const SdaiProduct_definition_formation_ptr&,
                            const SelectTypeDescriptor * =ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::t_date_and_time_item );
    SdaiDate_and_time_item( const SdaiProduct_definition_relationship_ptr&,
                            const SelectTypeDescriptor * =ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::t_date_and_time_item );
    SdaiDate_and_time_item( const SdaiRule_action_ptr&,
                            const SelectTypeDescriptor * =ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::t_date_and_time_item );
    SdaiDate_and_time_item( const SdaiSecurity_classification_ptr&,
                            const SelectTypeDescriptor * =ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::t_date_and_time_item );
    SdaiDate_and_time_item( const SdaiVersioned_action_request_ptr&,
                            const SelectTypeDescriptor * =ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::t_date_and_time_item );
    virtual ~SdaiDate_and_time_item();

    //  part 2
    operator SdaiAction_ptr();
    operator SdaiAction_directive_ptr();
    operator SdaiApplied_action_assignment_ptr();
    operator SdaiApplied_organization_assignment_ptr();
    operator SdaiApplied_person_and_organization_assignment_ptr();
    operator SdaiApplied_security_classification_assignment_ptr();
    operator SdaiApproval_person_organization_ptr();
    operator SdaiCertification_ptr();
    operator SdaiContract_ptr();
    operator SdaiDirected_action_ptr();
    operator SdaiDocument_ptr();
    operator SdaiDocument_file_ptr();
    operator SdaiEvent_occurrence_ptr();
    operator SdaiExecuted_action_ptr();
    operator SdaiInformation_usage_right_ptr();
    operator SdaiOrganizational_project_ptr();
    operator SdaiProduct_definition_ptr();
    operator SdaiProduct_definition_formation_ptr();
    operator SdaiProduct_definition_relationship_ptr();
    operator SdaiRule_action_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_definition_ptr_c related_product_definition_() const;
        SdaiProduct_definition_ptr   related_product_definition_();
        void related_product_definition_( const SdaiProduct_definition_ptr x );

        SdaiProduct_definition_ptr_c relating_product_definition_() const;
        SdaiProduct_definition_ptr   relating_product_definition_();
        void relating_product_definition_( const SdaiProduct_definition_ptr x );

        SdaiProduct_ptr_c of_product_() const;
        SdaiProduct_ptr   of_product_();
        void of_product_( const SdaiProduct_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 );

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

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

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

        SdaiAction_directive_ptr_c directive_() const;
        SdaiAction_directive_ptr   directive_();
        void directive_( const SdaiAction_directive_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 );

        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 );

        SdaiSecurity_classification_ptr_c assigned_security_classification_() const;
        SdaiSecurity_classification_ptr   assigned_security_classification_();
        void assigned_security_classification_( const SdaiSecurity_classification_ptr x );

        SdaiPerson_and_organization_ptr_c assigned_person_and_organization_() const;
        SdaiPerson_and_organization_ptr   assigned_person_and_organization_();
        void assigned_person_and_organization_( const SdaiPerson_and_organization_ptr x );

        SdaiOrganization_ptr_c assigned_organization_() const;
        SdaiOrganization_ptr   assigned_organization_();
        void assigned_organization_( const SdaiOrganization_ptr x );

        SdaiAction_items_agg_ptr_c items_() const;
        SdaiAction_items_agg_ptr   items_();
        void items_( const SdaiAction_items_agg_ptr x );

        SdaiAction_ptr_c assigned_action_() const;
        SdaiAction_ptr   assigned_action_();
        void assigned_action_( const SdaiAction_ptr x );

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

  const SdaiText   comment_() const;
        SdaiText   comment_();
        void comment_( const SdaiText x );

  const SdaiText   analysis_() const;
        SdaiText   analysis_();
        void analysis_( 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
    SdaiDate_and_time_item& operator =( const SdaiAction_ptr& );
    SdaiDate_and_time_item& operator =( const SdaiAction_directive_ptr& );
    SdaiDate_and_time_item& operator =( const SdaiApplied_action_assignment_ptr& );
    SdaiDate_and_time_item& operator =( const SdaiApplied_organization_assignment_ptr& );
    SdaiDate_and_time_item& operator =( const SdaiApplied_person_and_organization_assignment_ptr& );
    SdaiDate_and_time_item& operator =( const SdaiApplied_security_classification_assignment_ptr& );
    SdaiDate_and_time_item& operator =( const SdaiApproval_person_organization_ptr& );
    SdaiDate_and_time_item& operator =( const SdaiCertification_ptr& );
    SdaiDate_and_time_item& operator =( const SdaiContract_ptr& );
    SdaiDate_and_time_item& operator =( const SdaiDirected_action_ptr& );
    SdaiDate_and_time_item& operator =( const SdaiDocument_ptr& );
    SdaiDate_and_time_item& operator =( const SdaiDocument_file_ptr& );
    SdaiDate_and_time_item& operator =( const SdaiEvent_occurrence_ptr& );
    SdaiDate_and_time_item& operator =( const SdaiExecuted_action_ptr& );
    SdaiDate_and_time_item& operator =( const SdaiInformation_usage_right_ptr& );
    SdaiDate_and_time_item& operator =( const SdaiOrganizational_project_ptr& );
    SdaiDate_and_time_item& operator =( const SdaiProduct_definition_ptr& );
    SdaiDate_and_time_item& operator =( const SdaiProduct_definition_formation_ptr& );
    SdaiDate_and_time_item& operator =( const SdaiProduct_definition_relationship_ptr& );
    SdaiDate_and_time_item& operator =( const SdaiRule_action_ptr& );
    SdaiDate_and_time_item& operator =( const SdaiSecurity_classification_ptr& );
    SdaiDate_and_time_item& operator =( const SdaiVersioned_action_request_ptr& );
    // not in SDAI
    SdaiDate_and_time_item& ShallowCopy ( const SdaiDate_and_time_item& );

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

    //  part 5
    Logical IsAction() const;
    Logical IsAction_directive() const;
    Logical IsApplied_action_assignment() const;
    Logical IsApplied_organization_assignment() const;
    Logical IsApplied_person_and_organization_assignment() const;
    Logical IsApplied_security_classification_assignment() const;
    Logical IsApproval_person_organization() const;
    Logical IsCertification() const;
    Logical IsContract() const;
    Logical IsDirected_action() const;
    Logical IsDocument() const;
    Logical IsDocument_file() const;
    Logical IsEvent_occurrence() const;
    Logical IsExecuted_action() const;
    Logical IsInformation_usage_right() const;
    Logical IsOrganizational_project() const;
    Logical IsProduct_definition() const;
    Logical IsProduct_definition_formation() const;
    Logical IsProduct_definition_relationship() const;
    Logical IsRule_action() 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_SdaiDate_and_time_item () { return new SdaiDate_and_time_item; }
typedef SdaiDate_and_time_item * SdaiDate_and_time_itemH;
typedef SdaiDate_and_time_item_ptr SdaiDate_and_time_item_var;


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

  public:
    SdaiDate_and_time_item_agg( SelectTypeDescriptor * =ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::t_date_and_time_item );
    ~SdaiDate_and_time_item_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiDate_and_time_item( sel_type )); }
};
inline STEPaggregate * create_SdaiDate_and_time_item_agg () { return new SdaiDate_and_time_item_agg; }
typedef SdaiDate_and_time_item_agg_ptr SdaiDate_and_time_item_agg_var;

/////  END SELECT TYPE date_and_time_item

void init_SdaiDate_and_time_item(Registry& reg);

#endif
