#ifndef  TYPE_SDAIIFCUNIT_H
#define  TYPE_SDAIIFCUNIT_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 SdaiIfcunit
class SC_SCHEMA_EXPORT SdaiIfcunit  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   IFCDERIVEDUNIT    --  sdaiINSTANCE
    //   IFCMONETARYUNIT    --  sdaiINSTANCE
    //   IFCNAMEDUNIT    --  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
    SdaiIfcunit( const SelectTypeDescriptor * =ifc4::t_ifcunit );
    //  part 1
    SdaiIfcunit( const SdaiIfcderivedunit_ptr&,
                 const SelectTypeDescriptor * =ifc4::t_ifcunit );
    SdaiIfcunit( const SdaiIfcmonetaryunit_ptr&,
                 const SelectTypeDescriptor * =ifc4::t_ifcunit );
    SdaiIfcunit( const SdaiIfcnamedunit_ptr&,
                 const SelectTypeDescriptor * =ifc4::t_ifcunit );
    virtual ~SdaiIfcunit();

    //  part 2
    operator SdaiIfcderivedunit_ptr();
    operator SdaiIfcmonetaryunit_ptr();
    operator SdaiIfcnamedunit_ptr();

    //  part 3
  const SdaiIfclabel   currency_() const;
        SdaiIfclabel   currency_();
        void currency_( const SdaiIfclabel x );

  const SdaiIfclabel   userdefinedtype_() const;
        SdaiIfclabel   userdefinedtype_();
        void userdefinedtype_( const SdaiIfclabel x );

  const SdaiIfcderivedunitenum_var   unittype_() const;
        SdaiIfcderivedunitenum_var   unittype_();
        void unittype_( const SdaiIfcderivedunitenum_var x );

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


    //  part 4
    SdaiIfcunit& operator =( const SdaiIfcderivedunit_ptr& );
    SdaiIfcunit& operator =( const SdaiIfcmonetaryunit_ptr& );
    SdaiIfcunit& operator =( const SdaiIfcnamedunit_ptr& );
    // not in SDAI
    SdaiIfcunit& ShallowCopy ( const SdaiIfcunit& );

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

    //  part 5
    Logical IsIfcderivedunit() const;
    Logical IsIfcmonetaryunit() const;
    Logical IsIfcnamedunit() const;

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

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

inline SDAI_Select * create_SdaiIfcunit () { return new SdaiIfcunit; }
typedef SdaiIfcunit * SdaiIfcunitH;
typedef SdaiIfcunit_ptr SdaiIfcunit_var;


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

  public:
    SdaiIfcunit_agg( SelectTypeDescriptor * =ifc4::t_ifcunit );
    ~SdaiIfcunit_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiIfcunit( sel_type )); }
};
inline STEPaggregate * create_SdaiIfcunit_agg () { return new SdaiIfcunit_agg; }
typedef SdaiIfcunit_agg_ptr SdaiIfcunit_agg_var;

/////  END SELECT TYPE ifcunit

void init_SdaiIfcunit(Registry& reg);

#endif
