#ifndef  TYPE_SDAIIFCCOLOURORFACTOR_H
#define  TYPE_SDAIIFCCOLOURORFACTOR_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 SdaiIfccolourorfactor
class SC_SCHEMA_EXPORT SdaiIfccolourorfactor  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   IFCCOLOURRGB    --  sdaiINSTANCE
    //   IFCNORMALISEDRATIOMEASURE    --  sdaiREAL
       SDAI_Application_instance_ptr _app_inst;
       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
    SdaiIfccolourorfactor( const SelectTypeDescriptor * =ifc4::t_ifccolourorfactor );
    //  part 1
    SdaiIfccolourorfactor( const SdaiIfccolourrgb_ptr&,
                           const SelectTypeDescriptor * =ifc4::t_ifccolourorfactor );
    SdaiIfccolourorfactor( const SdaiIfcnormalisedratiomeasure&,
                           const SelectTypeDescriptor * =ifc4::t_ifccolourorfactor );
    virtual ~SdaiIfccolourorfactor();

    //  part 2
    operator SdaiIfccolourrgb_ptr();
    operator SdaiIfcnormalisedratiomeasure();

    //  part 3
        SdaiIfcnormalisedratiomeasure   blue_() const;
        void blue_( const SdaiIfcnormalisedratiomeasure x );

        SdaiIfcnormalisedratiomeasure   green_() const;
        void green_( const SdaiIfcnormalisedratiomeasure x );

        SdaiIfcnormalisedratiomeasure   red_() const;
        void red_( const SdaiIfcnormalisedratiomeasure x );

  const SdaiIfclabel   name_() const;
        SdaiIfclabel   name_();
        void name_( const SdaiIfclabel x );


    //  part 4
    SdaiIfccolourorfactor& operator =( const SdaiIfccolourrgb_ptr& );
    SdaiIfccolourorfactor& operator =( const SdaiIfcnormalisedratiomeasure& );
    // not in SDAI
    SdaiIfccolourorfactor& ShallowCopy ( const SdaiIfccolourorfactor& );

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

    //  part 5
    Logical IsIfccolourrgb() const;
    Logical IsIfcnormalisedratiomeasure() const;

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

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

inline SDAI_Select * create_SdaiIfccolourorfactor () { return new SdaiIfccolourorfactor; }
typedef SdaiIfccolourorfactor * SdaiIfccolourorfactorH;
typedef SdaiIfccolourorfactor_ptr SdaiIfccolourorfactor_var;


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

  public:
    SdaiIfccolourorfactor_agg( SelectTypeDescriptor * =ifc4::t_ifccolourorfactor );
    ~SdaiIfccolourorfactor_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiIfccolourorfactor( sel_type )); }
};
inline STEPaggregate * create_SdaiIfccolourorfactor_agg () { return new SdaiIfccolourorfactor_agg; }
typedef SdaiIfccolourorfactor_agg_ptr SdaiIfccolourorfactor_agg_var;

/////  END SELECT TYPE ifccolourorfactor

void init_SdaiIfccolourorfactor(Registry& reg);

#endif
