#ifndef  TYPE_SDAIDATUM_OR_COMMON_DATUM_H
#define  TYPE_SDAIDATUM_OR_COMMON_DATUM_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_or_common_datum
class SC_SCHEMA_EXPORT SdaiDatum_or_common_datum  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   COMMON_DATUM_LIST    --  LIST_TYPE
    //   DATUM    --  sdaiINSTANCE
       EntityAggregate_ptr _entityaggregate;
       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_or_common_datum( const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_datum_or_common_datum );
    //  part 1
    SdaiDatum_or_common_datum( const SdaiCommon_datum_list_ptr&,
                               const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_datum_or_common_datum );
    SdaiDatum_or_common_datum( const SdaiDatum_ptr&,
                               const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_datum_or_common_datum );
    virtual ~SdaiDatum_or_common_datum();

    //  part 2
    operator SdaiCommon_datum_list_ptr();
    operator SdaiDatum_ptr();

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

  const SdaiIdentifier   identification_() const;
        SdaiIdentifier   identification_();
        void identification_( const SdaiIdentifier 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 );


    //  part 4
    SdaiDatum_or_common_datum& operator =( const SdaiCommon_datum_list_ptr& );
    SdaiDatum_or_common_datum& operator =( const SdaiDatum_ptr& );
    // not in SDAI
    SdaiDatum_or_common_datum& ShallowCopy ( const SdaiDatum_or_common_datum& );

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

    //  part 5
    Logical IsCommon_datum_list() const;
    Logical IsDatum() const;

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

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

inline SDAI_Select * create_SdaiDatum_or_common_datum () { return new SdaiDatum_or_common_datum; }
typedef SdaiDatum_or_common_datum * SdaiDatum_or_common_datumH;
typedef SdaiDatum_or_common_datum_ptr SdaiDatum_or_common_datum_var;


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

  public:
    SdaiDatum_or_common_datum_agg( SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_datum_or_common_datum );
    ~SdaiDatum_or_common_datum_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiDatum_or_common_datum( sel_type )); }
};
inline STEPaggregate * create_SdaiDatum_or_common_datum_agg () { return new SdaiDatum_or_common_datum_agg; }
typedef SdaiDatum_or_common_datum_agg_ptr SdaiDatum_or_common_datum_agg_var;

/////  END SELECT TYPE datum_or_common_datum

void init_SdaiDatum_or_common_datum(Registry& reg);

#endif
