#ifndef  TYPE_SDAIMEASURED_VALUE_SELECT_H
#define  TYPE_SDAIMEASURED_VALUE_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 SdaiMeasured_value_select
class SC_SCHEMA_EXPORT SdaiMeasured_value_select  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   BOOLEAN_VALUE    --  sdaiBOOLEAN
    //   MEASURE_VALUE    --  sdaiSELECT
    //   PLANE_ANGLE_AND_RATIO_PAIR    --  sdaiINSTANCE
    //   PLANE_ANGLE_AND_LENGTH_PAIR    --  sdaiINSTANCE
       SDAI_BOOLEAN _boolean;
       SdaiMeasure_value _sdaimeasure_value;
       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
    SdaiMeasured_value_select( const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_measured_value_select );
    //  part 1
    SdaiMeasured_value_select( const Boolean&,
                               const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_measured_value_select );
    SdaiMeasured_value_select( const SdaiMeasure_value_ptr&,
                               const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_measured_value_select );
    SdaiMeasured_value_select( const SdaiPlane_angle_and_ratio_pair_ptr&,
                               const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_measured_value_select );
    SdaiMeasured_value_select( const SdaiPlane_angle_and_length_pair_ptr&,
                               const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_measured_value_select );
    virtual ~SdaiMeasured_value_select();

    //  part 2
    operator Boolean();
    operator SdaiMeasure_value_ptr();
    operator SdaiPlane_angle_and_ratio_pair_ptr();
    operator SdaiPlane_angle_and_length_pair_ptr();

    //  part 3
        SdaiLength_measure   length_value_() const;
        void length_value_( const SdaiLength_measure x );

        SdaiRatio_measure   ratio_value_() const;
        void ratio_value_( const SdaiRatio_measure x );

        SdaiPlane_angle_measure   plane_angle_value_() const;
        void plane_angle_value_( const SdaiPlane_angle_measure x );


    //  part 4
    SdaiMeasured_value_select& operator =( const Boolean& );
    SdaiMeasured_value_select& operator =( const SdaiMeasure_value_ptr& );
    SdaiMeasured_value_select& operator =( const SdaiPlane_angle_and_ratio_pair_ptr& );
    SdaiMeasured_value_select& operator =( const SdaiPlane_angle_and_length_pair_ptr& );
    // not in SDAI
    SdaiMeasured_value_select& ShallowCopy ( const SdaiMeasured_value_select& );

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

    //  part 5
    Logical IsBoolean_value() const;
    Logical IsMeasure_value() const;
    Logical IsPlane_angle_and_ratio_pair() const;
    Logical IsPlane_angle_and_length_pair() const;

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

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

inline SDAI_Select * create_SdaiMeasured_value_select () { return new SdaiMeasured_value_select; }
typedef SdaiMeasured_value_select * SdaiMeasured_value_selectH;
typedef SdaiMeasured_value_select_ptr SdaiMeasured_value_select_var;


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

  public:
    SdaiMeasured_value_select_agg( SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_measured_value_select );
    ~SdaiMeasured_value_select_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiMeasured_value_select( sel_type )); }
};
inline STEPaggregate * create_SdaiMeasured_value_select_agg () { return new SdaiMeasured_value_select_agg; }
typedef SdaiMeasured_value_select_agg_ptr SdaiMeasured_value_select_agg_var;

/////  END SELECT TYPE measured_value_select

void init_SdaiMeasured_value_select(Registry& reg);

#endif
