#ifndef  TYPE_SDAIDATE_TIME_OR_EVENT_OCCURRENCE_H
#define  TYPE_SDAIDATE_TIME_OR_EVENT_OCCURRENCE_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_or_event_occurrence
class SC_SCHEMA_EXPORT SdaiDate_time_or_event_occurrence  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   DATE_TIME_SELECT    --  sdaiSELECT
    //   EVENT_OCCURRENCE    --  sdaiINSTANCE
       SdaiDate_time_select _sdaidate_time_select;
       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_or_event_occurrence( const SelectTypeDescriptor * =ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::t_date_time_or_event_occurrence );
    //  part 1
    SdaiDate_time_or_event_occurrence( const SdaiDate_time_select_ptr&,
                                       const SelectTypeDescriptor * =ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::t_date_time_or_event_occurrence );
    SdaiDate_time_or_event_occurrence( const SdaiEvent_occurrence_ptr&,
                                       const SelectTypeDescriptor * =ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::t_date_time_or_event_occurrence );
    virtual ~SdaiDate_time_or_event_occurrence();

    //  part 2
    operator SdaiDate_time_select_ptr();
    operator SdaiEvent_occurrence_ptr();

    //  part 3
  const SdaiText   description_() const;
        SdaiText   description_();
        void description_( const SdaiText x );

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

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


    //  part 4
    SdaiDate_time_or_event_occurrence& operator =( const SdaiDate_time_select_ptr& );
    SdaiDate_time_or_event_occurrence& operator =( const SdaiEvent_occurrence_ptr& );
    // not in SDAI
    SdaiDate_time_or_event_occurrence& ShallowCopy ( const SdaiDate_time_or_event_occurrence& );

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

    //  part 5
    Logical IsDate_time_select() const;
    Logical IsEvent_occurrence() const;

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

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

inline SDAI_Select * create_SdaiDate_time_or_event_occurrence () { return new SdaiDate_time_or_event_occurrence; }
typedef SdaiDate_time_or_event_occurrence * SdaiDate_time_or_event_occurrenceH;
typedef SdaiDate_time_or_event_occurrence_ptr SdaiDate_time_or_event_occurrence_var;


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

  public:
    SdaiDate_time_or_event_occurrence_agg( SelectTypeDescriptor * =ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::t_date_time_or_event_occurrence );
    ~SdaiDate_time_or_event_occurrence_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiDate_time_or_event_occurrence( sel_type )); }
};
inline STEPaggregate * create_SdaiDate_time_or_event_occurrence_agg () { return new SdaiDate_time_or_event_occurrence_agg; }
typedef SdaiDate_time_or_event_occurrence_agg_ptr SdaiDate_time_or_event_occurrence_agg_var;

/////  END SELECT TYPE date_time_or_event_occurrence

void init_SdaiDate_time_or_event_occurrence(Registry& reg);

#endif
