#ifndef  TYPE_SDAIIFCAPPLIEDVALUESELECT_H
#define  TYPE_SDAIIFCAPPLIEDVALUESELECT_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 SdaiIfcappliedvalueselect
class SC_SCHEMA_EXPORT SdaiIfcappliedvalueselect  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   IFCMEASUREWITHUNIT    --  sdaiINSTANCE
    //   IFCREFERENCE    --  sdaiINSTANCE
    //   IFCVALUE    --  sdaiSELECT
       SDAI_Application_instance_ptr _app_inst;
       SdaiIfcvalue _sdaiifcvalue;

  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
    SdaiIfcappliedvalueselect( const SelectTypeDescriptor * =ifc4::t_ifcappliedvalueselect );
    //  part 1
    SdaiIfcappliedvalueselect( const SdaiIfcmeasurewithunit_ptr&,
                               const SelectTypeDescriptor * =ifc4::t_ifcappliedvalueselect );
    SdaiIfcappliedvalueselect( const SdaiIfcreference_ptr&,
                               const SelectTypeDescriptor * =ifc4::t_ifcappliedvalueselect );
    SdaiIfcappliedvalueselect( const SdaiIfcvalue_ptr&,
                               const SelectTypeDescriptor * =ifc4::t_ifcappliedvalueselect );
    virtual ~SdaiIfcappliedvalueselect();

    //  part 2
    operator SdaiIfcmeasurewithunit_ptr();
    operator SdaiIfcreference_ptr();
    operator SdaiIfcvalue_ptr();

    //  part 3
        SdaiIfcreference_ptr_c innerreference_() const;
        SdaiIfcreference_ptr   innerreference_();
        void innerreference_( const SdaiIfcreference_ptr x );

        IntAggregate_ptr_c listpositions_() const;
        IntAggregate_ptr   listpositions_();
        void listpositions_( const IntAggregate_ptr x );

  const SdaiIfclabel   instancename_() const;
        SdaiIfclabel   instancename_();
        void instancename_( const SdaiIfclabel x );

  const SdaiIfcidentifier   attributeidentifier_() const;
        SdaiIfcidentifier   attributeidentifier_();
        void attributeidentifier_( const SdaiIfcidentifier x );

  const SdaiIfcidentifier   typeidentifier_() const;
        SdaiIfcidentifier   typeidentifier_();
        void typeidentifier_( const SdaiIfcidentifier x );

        SdaiIfcunit_ptr_c unitcomponent_() const;
        SdaiIfcunit_ptr   unitcomponent_();
        void unitcomponent_( const SdaiIfcunit_ptr x );

        SdaiIfcvalue_ptr_c valuecomponent_() const;
        SdaiIfcvalue_ptr   valuecomponent_();
        void valuecomponent_( const SdaiIfcvalue_ptr x );


    //  part 4
    SdaiIfcappliedvalueselect& operator =( const SdaiIfcmeasurewithunit_ptr& );
    SdaiIfcappliedvalueselect& operator =( const SdaiIfcreference_ptr& );
    SdaiIfcappliedvalueselect& operator =( const SdaiIfcvalue_ptr& );
    // not in SDAI
    SdaiIfcappliedvalueselect& ShallowCopy ( const SdaiIfcappliedvalueselect& );

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

    //  part 5
    Logical IsIfcmeasurewithunit() const;
    Logical IsIfcreference() const;
    Logical IsIfcvalue() const;

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

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

inline SDAI_Select * create_SdaiIfcappliedvalueselect () { return new SdaiIfcappliedvalueselect; }
typedef SdaiIfcappliedvalueselect * SdaiIfcappliedvalueselectH;
typedef SdaiIfcappliedvalueselect_ptr SdaiIfcappliedvalueselect_var;


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

  public:
    SdaiIfcappliedvalueselect_agg( SelectTypeDescriptor * =ifc4::t_ifcappliedvalueselect );
    ~SdaiIfcappliedvalueselect_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiIfcappliedvalueselect( sel_type )); }
};
inline STEPaggregate * create_SdaiIfcappliedvalueselect_agg () { return new SdaiIfcappliedvalueselect_agg; }
typedef SdaiIfcappliedvalueselect_agg_ptr SdaiIfcappliedvalueselect_agg_var;

/////  END SELECT TYPE ifcappliedvalueselect

void init_SdaiIfcappliedvalueselect(Registry& reg);

#endif
