#ifndef  TYPE_SDAIDATE_OR_DATE_TIME_SELECT_H
#define  TYPE_SDAIDATE_OR_DATE_TIME_SELECT_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_or_date_time_select
class SC_SCHEMA_EXPORT SdaiDate_or_date_time_select  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   CALENDAR_DATE    --  sdaiINSTANCE
    //   DATE_TIME    --  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_or_date_time_select( const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_date_or_date_time_select );
    //  part 1
    SdaiDate_or_date_time_select( const SdaiCalendar_date_ptr&,
                                  const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_date_or_date_time_select );
    SdaiDate_or_date_time_select( const SdaiDate_time_ptr&,
                                  const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_date_or_date_time_select );
    virtual ~SdaiDate_or_date_time_select();

    //  part 2
    operator SdaiCalendar_date_ptr();
    operator SdaiDate_time_ptr();

    //  part 3
        SdaiLocal_time_ptr_c time_component_() const;
        SdaiLocal_time_ptr   time_component_();
        void time_component_( const SdaiLocal_time_ptr x );

        SdaiCalendar_date_ptr_c date_component_() const;
        SdaiCalendar_date_ptr   date_component_();
        void date_component_( const SdaiCalendar_date_ptr x );

        SdaiDay_in_month_number   day_component_() const;
        void day_component_( const SdaiDay_in_month_number x );

        SdaiMonth_in_year_number   month_component_() const;
        void month_component_( const SdaiMonth_in_year_number x );

        SdaiYear_number   year_component_() const;
        void year_component_( const SdaiYear_number x );


    //  part 4
    SdaiDate_or_date_time_select& operator =( const SdaiCalendar_date_ptr& );
    SdaiDate_or_date_time_select& operator =( const SdaiDate_time_ptr& );
    // not in SDAI
    SdaiDate_or_date_time_select& ShallowCopy ( const SdaiDate_or_date_time_select& );

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

    //  part 5
    Logical IsCalendar_date() const;
    Logical IsDate_time() const;

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

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

inline SDAI_Select * create_SdaiDate_or_date_time_select () { return new SdaiDate_or_date_time_select; }
typedef SdaiDate_or_date_time_select * SdaiDate_or_date_time_selectH;
typedef SdaiDate_or_date_time_select_ptr SdaiDate_or_date_time_select_var;


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

  public:
    SdaiDate_or_date_time_select_agg( SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_date_or_date_time_select );
    ~SdaiDate_or_date_time_select_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiDate_or_date_time_select( sel_type )); }
};
inline STEPaggregate * create_SdaiDate_or_date_time_select_agg () { return new SdaiDate_or_date_time_select_agg; }
typedef SdaiDate_or_date_time_select_agg_ptr SdaiDate_or_date_time_select_agg_var;

/////  END SELECT TYPE date_or_date_time_select

void init_SdaiDate_or_date_time_select(Registry& reg);

#endif
