#ifndef  TYPE_SDAIDATUM_SYSTEM_OR_REFERENCE_H
#define  TYPE_SDAIDATUM_SYSTEM_OR_REFERENCE_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_system_or_reference
class SC_SCHEMA_EXPORT SdaiDatum_system_or_reference  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   DATUM_REFERENCE    --  sdaiINSTANCE
    //   DATUM_SYSTEM    --  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
    SdaiDatum_system_or_reference( const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_datum_system_or_reference );
    //  part 1
    SdaiDatum_system_or_reference( const SdaiDatum_reference_ptr&,
                                   const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_datum_system_or_reference );
    SdaiDatum_system_or_reference( const SdaiDatum_system_ptr&,
                                   const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_datum_system_or_reference );
    virtual ~SdaiDatum_system_or_reference();

    //  part 2
    operator SdaiDatum_reference_ptr();
    operator SdaiDatum_system_ptr();

    //  part 3
        EntityAggregate_ptr_c constituents_() const;
        EntityAggregate_ptr   constituents_();
        void constituents_( const EntityAggregate_ptr x );

        Logical   product_definitional_() const;
        void product_definitional_( const Logical x );

        SdaiProduct_definition_shape_ptr_c of_shape_() const;
        SdaiProduct_definition_shape_ptr   of_shape_();
        void of_shape_( const SdaiProduct_definition_shape_ptr x );

  const SdaiText   description_() const;
        SdaiText   description_();
        void description_( const SdaiText x );

  const SdaiLabel   name_() const;
        SdaiLabel   name_();
        void name_( const SdaiLabel x );

        SdaiDatum_ptr_c referenced_datum_() const;
        SdaiDatum_ptr   referenced_datum_();
        void referenced_datum_( const SdaiDatum_ptr x );

        SDAI_Integer   precedence_() const;
        void precedence_( const SDAI_Integer x );


    //  part 4
    SdaiDatum_system_or_reference& operator =( const SdaiDatum_reference_ptr& );
    SdaiDatum_system_or_reference& operator =( const SdaiDatum_system_ptr& );
    // not in SDAI
    SdaiDatum_system_or_reference& ShallowCopy ( const SdaiDatum_system_or_reference& );

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

    //  part 5
    Logical IsDatum_reference() const;
    Logical IsDatum_system() const;

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

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

inline SDAI_Select * create_SdaiDatum_system_or_reference () { return new SdaiDatum_system_or_reference; }
typedef SdaiDatum_system_or_reference * SdaiDatum_system_or_referenceH;
typedef SdaiDatum_system_or_reference_ptr SdaiDatum_system_or_reference_var;


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

  public:
    SdaiDatum_system_or_reference_agg( SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_datum_system_or_reference );
    ~SdaiDatum_system_or_reference_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiDatum_system_or_reference( sel_type )); }
};
inline STEPaggregate * create_SdaiDatum_system_or_reference_agg () { return new SdaiDatum_system_or_reference_agg; }
typedef SdaiDatum_system_or_reference_agg_ptr SdaiDatum_system_or_reference_agg_var;

/////  END SELECT TYPE datum_system_or_reference

void init_SdaiDatum_system_or_reference(Registry& reg);

#endif
