#ifndef  TYPE_SDAIIFCDATETIMESELECT_H
#define  TYPE_SDAIIFCDATETIMESELECT_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 SdaiIfcdatetimeselect
class SC_SCHEMA_EXPORT SdaiIfcdatetimeselect  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   IFCCALENDARDATE    --  sdaiINSTANCE
    //   IFCLOCALTIME    --  sdaiINSTANCE
    //   IFCDATEANDTIME    --  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
    SdaiIfcdatetimeselect( const SelectTypeDescriptor * =ifc2x3::t_ifcdatetimeselect );
    //  part 1
    SdaiIfcdatetimeselect( const SdaiIfccalendardate_ptr&,
                           const SelectTypeDescriptor * =ifc2x3::t_ifcdatetimeselect );
    SdaiIfcdatetimeselect( const SdaiIfclocaltime_ptr&,
                           const SelectTypeDescriptor * =ifc2x3::t_ifcdatetimeselect );
    SdaiIfcdatetimeselect( const SdaiIfcdateandtime_ptr&,
                           const SelectTypeDescriptor * =ifc2x3::t_ifcdatetimeselect );
    virtual ~SdaiIfcdatetimeselect();

    //  part 2
    operator SdaiIfccalendardate_ptr();
    operator SdaiIfclocaltime_ptr();
    operator SdaiIfcdateandtime_ptr();

    //  part 3
        SdaiIfclocaltime_ptr_c timecomponent_() const;
        SdaiIfclocaltime_ptr   timecomponent_();
        void timecomponent_( const SdaiIfclocaltime_ptr x );

        SdaiIfccalendardate_ptr_c datecomponent_() const;
        SdaiIfccalendardate_ptr   datecomponent_();
        void datecomponent_( const SdaiIfccalendardate_ptr x );

        SdaiIfcdaylightsavinghour   daylightsavingoffset_() const;
        void daylightsavingoffset_( const SdaiIfcdaylightsavinghour x );

        SdaiIfccoordinateduniversaltimeoffset_ptr_c zone_() const;
        SdaiIfccoordinateduniversaltimeoffset_ptr   zone_();
        void zone_( const SdaiIfccoordinateduniversaltimeoffset_ptr x );

        SdaiIfcsecondinminute   secondcomponent_() const;
        void secondcomponent_( const SdaiIfcsecondinminute x );

        SdaiIfcminuteinhour   minutecomponent_() const;
        void minutecomponent_( const SdaiIfcminuteinhour x );

        SdaiIfchourinday   hourcomponent_() const;
        void hourcomponent_( const SdaiIfchourinday x );

        SdaiIfcyearnumber   yearcomponent_() const;
        void yearcomponent_( const SdaiIfcyearnumber x );

        SdaiIfcmonthinyearnumber   monthcomponent_() const;
        void monthcomponent_( const SdaiIfcmonthinyearnumber x );

        SdaiIfcdayinmonthnumber   daycomponent_() const;
        void daycomponent_( const SdaiIfcdayinmonthnumber x );


    //  part 4
    SdaiIfcdatetimeselect& operator =( const SdaiIfccalendardate_ptr& );
    SdaiIfcdatetimeselect& operator =( const SdaiIfclocaltime_ptr& );
    SdaiIfcdatetimeselect& operator =( const SdaiIfcdateandtime_ptr& );
    // not in SDAI
    SdaiIfcdatetimeselect& ShallowCopy ( const SdaiIfcdatetimeselect& );

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

    //  part 5
    Logical IsIfccalendardate() const;
    Logical IsIfclocaltime() const;
    Logical IsIfcdateandtime() const;

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

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

inline SDAI_Select * create_SdaiIfcdatetimeselect () { return new SdaiIfcdatetimeselect; }
typedef SdaiIfcdatetimeselect * SdaiIfcdatetimeselectH;
typedef SdaiIfcdatetimeselect_ptr SdaiIfcdatetimeselect_var;


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

  public:
    SdaiIfcdatetimeselect_agg( SelectTypeDescriptor * =ifc2x3::t_ifcdatetimeselect );
    ~SdaiIfcdatetimeselect_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiIfcdatetimeselect( sel_type )); }
};
inline STEPaggregate * create_SdaiIfcdatetimeselect_agg () { return new SdaiIfcdatetimeselect_agg; }
typedef SdaiIfcdatetimeselect_agg_ptr SdaiIfcdatetimeselect_agg_var;

/////  END SELECT TYPE ifcdatetimeselect

void init_SdaiIfcdatetimeselect(Registry& reg);

#endif
