#ifndef  TYPE_SDAIIFCTIMEORRATIOSELECT_H
#define  TYPE_SDAIIFCTIMEORRATIOSELECT_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 SdaiIfctimeorratioselect
class SC_SCHEMA_EXPORT SdaiIfctimeorratioselect  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   IFCDURATION    --  sdaiSTRING
    //   IFCRATIOMEASURE    --  sdaiREAL
       SDAI_String _string;
       SDAI_Real _real;

  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
    SdaiIfctimeorratioselect( const SelectTypeDescriptor * =ifc4::t_ifctimeorratioselect );
    //  part 1
    SdaiIfctimeorratioselect( const SdaiIfcduration&,
                              const SelectTypeDescriptor * =ifc4::t_ifctimeorratioselect );
    SdaiIfctimeorratioselect( const SdaiIfcratiomeasure&,
                              const SelectTypeDescriptor * =ifc4::t_ifctimeorratioselect );
    virtual ~SdaiIfctimeorratioselect();

    //  part 2
    operator SdaiIfcduration();
    operator SdaiIfcratiomeasure();

    //  part 3

    //  part 4
    SdaiIfctimeorratioselect& operator =( const SdaiIfcduration& );
    SdaiIfctimeorratioselect& operator =( const SdaiIfcratiomeasure& );
    // not in SDAI
    SdaiIfctimeorratioselect& ShallowCopy ( const SdaiIfctimeorratioselect& );

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

    //  part 5
    Logical IsIfcduration() const;
    Logical IsIfcratiomeasure() const;

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

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

inline SDAI_Select * create_SdaiIfctimeorratioselect () { return new SdaiIfctimeorratioselect; }
typedef SdaiIfctimeorratioselect * SdaiIfctimeorratioselectH;
typedef SdaiIfctimeorratioselect_ptr SdaiIfctimeorratioselect_var;


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

  public:
    SdaiIfctimeorratioselect_agg( SelectTypeDescriptor * =ifc4::t_ifctimeorratioselect );
    ~SdaiIfctimeorratioselect_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiIfctimeorratioselect( sel_type )); }
};
inline STEPaggregate * create_SdaiIfctimeorratioselect_agg () { return new SdaiIfctimeorratioselect_agg; }
typedef SdaiIfctimeorratioselect_agg_ptr SdaiIfctimeorratioselect_agg_var;

/////  END SELECT TYPE ifctimeorratioselect

void init_SdaiIfctimeorratioselect(Registry& reg);

#endif
