#ifndef  TYPE_SDAIEXPRESSION_EXTENSION_SELECT_H
#define  TYPE_SDAIEXPRESSION_EXTENSION_SELECT_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 SdaiExpression_extension_select
class SC_SCHEMA_EXPORT SdaiExpression_extension_select  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   EXPRESSION_EXTENSION_STRING    --  sdaiINSTANCE
    //   EXPRESSION_EXTENSION_NUMERIC    --  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
    SdaiExpression_extension_select( const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_expression_extension_select );
    //  part 1
    SdaiExpression_extension_select( const SdaiExpression_extension_string_ptr&,
                                     const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_expression_extension_select );
    SdaiExpression_extension_select( const SdaiExpression_extension_numeric_ptr&,
                                     const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_expression_extension_select );
    virtual ~SdaiExpression_extension_select();

    //  part 2
    operator SdaiExpression_extension_string_ptr();
    operator SdaiExpression_extension_numeric_ptr();

    //  part 3
        SdaiUnit_ptr_c unit_component_() const;
        SdaiUnit_ptr   unit_component_();
        void unit_component_( const SdaiUnit_ptr x );

        SdaiMeasure_value_ptr_c value_component_() const;
        SdaiMeasure_value_ptr   value_component_();
        void value_component_( const SdaiMeasure_value_ptr x );


    //  part 4
    SdaiExpression_extension_select& operator =( const SdaiExpression_extension_string_ptr& );
    SdaiExpression_extension_select& operator =( const SdaiExpression_extension_numeric_ptr& );
    // not in SDAI
    SdaiExpression_extension_select& ShallowCopy ( const SdaiExpression_extension_select& );

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

    //  part 5
    Logical IsExpression_extension_string() const;
    Logical IsExpression_extension_numeric() const;

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

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

inline SDAI_Select * create_SdaiExpression_extension_select () { return new SdaiExpression_extension_select; }
typedef SdaiExpression_extension_select * SdaiExpression_extension_selectH;
typedef SdaiExpression_extension_select_ptr SdaiExpression_extension_select_var;


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

  public:
    SdaiExpression_extension_select_agg( SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_expression_extension_select );
    ~SdaiExpression_extension_select_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiExpression_extension_select( sel_type )); }
};
inline STEPaggregate * create_SdaiExpression_extension_select_agg () { return new SdaiExpression_extension_select_agg; }
typedef SdaiExpression_extension_select_agg_ptr SdaiExpression_extension_select_agg_var;

/////  END SELECT TYPE expression_extension_select

void init_SdaiExpression_extension_select(Registry& reg);

#endif
