#ifndef  TYPE_SDAIDATUM_REFERENCE_MODIFIER_H
#define  TYPE_SDAIDATUM_REFERENCE_MODIFIER_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 SdaiDatum_reference_modifier
class SC_SCHEMA_EXPORT SdaiDatum_reference_modifier  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   DATUM_REFERENCE_MODIFIER_WITH_VALUE    --  sdaiINSTANCE
    //   SIMPLE_DATUM_REFERENCE_MODIFIER    --  sdaiENUMERATION
       SDAI_Application_instance_ptr _app_inst;
       SdaiSimple_datum_reference_modifier_var _sdaisimple_datum_reference_modifier_var;

  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
    SdaiDatum_reference_modifier( const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_datum_reference_modifier );
    //  part 1
    SdaiDatum_reference_modifier( const SdaiDatum_reference_modifier_with_value_ptr&,
                                  const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_datum_reference_modifier );
    SdaiDatum_reference_modifier( const SdaiSimple_datum_reference_modifier_var&,
                                  const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_datum_reference_modifier );
    virtual ~SdaiDatum_reference_modifier();

    //  part 2
    operator SdaiDatum_reference_modifier_with_value_ptr();
    operator SdaiSimple_datum_reference_modifier_var();

    //  part 3
        SdaiLength_measure_with_unit_ptr_c modifier_value_() const;
        SdaiLength_measure_with_unit_ptr   modifier_value_();
        void modifier_value_( const SdaiLength_measure_with_unit_ptr x );

  const SdaiDatum_reference_modifier_type_var   modifier_type_() const;
        SdaiDatum_reference_modifier_type_var   modifier_type_();
        void modifier_type_( const SdaiDatum_reference_modifier_type_var x );


    //  part 4
    SdaiDatum_reference_modifier& operator =( const SdaiDatum_reference_modifier_with_value_ptr& );
    SdaiDatum_reference_modifier& operator =( const SdaiSimple_datum_reference_modifier_var& );
    // not in SDAI
    SdaiDatum_reference_modifier& ShallowCopy ( const SdaiDatum_reference_modifier& );

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

    //  part 5
    Logical IsDatum_reference_modifier_with_value() const;
    Logical IsSimple_datum_reference_modifier() const;

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

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

inline SDAI_Select * create_SdaiDatum_reference_modifier () { return new SdaiDatum_reference_modifier; }
typedef SdaiDatum_reference_modifier * SdaiDatum_reference_modifierH;
typedef SdaiDatum_reference_modifier_ptr SdaiDatum_reference_modifier_var;


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

  public:
    SdaiDatum_reference_modifier_agg( SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_datum_reference_modifier );
    ~SdaiDatum_reference_modifier_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiDatum_reference_modifier( sel_type )); }
};
inline STEPaggregate * create_SdaiDatum_reference_modifier_agg () { return new SdaiDatum_reference_modifier_agg; }
typedef SdaiDatum_reference_modifier_agg_ptr SdaiDatum_reference_modifier_agg_var;

/////  END SELECT TYPE datum_reference_modifier

void init_SdaiDatum_reference_modifier(Registry& reg);

#endif
