#ifndef  TYPE_SDAISURFACE_OR_SOLID_MODEL_H
#define  TYPE_SDAISURFACE_OR_SOLID_MODEL_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 SdaiSurface_or_solid_model
class SC_SCHEMA_EXPORT SdaiSurface_or_solid_model  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   SURFACE_MODEL    --  sdaiSELECT
    //   SOLID_MODEL    --  sdaiINSTANCE
       SdaiSurface_model _sdaisurface_model;
       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
    SdaiSurface_or_solid_model( const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_surface_or_solid_model );
    //  part 1
    SdaiSurface_or_solid_model( const SdaiSurface_model_ptr&,
                                const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_surface_or_solid_model );
    SdaiSurface_or_solid_model( const SdaiSolid_model_ptr&,
                                const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_surface_or_solid_model );
    virtual ~SdaiSurface_or_solid_model();

    //  part 2
    operator SdaiSurface_model_ptr();
    operator SdaiSolid_model_ptr();

    //  part 3
  const SdaiLabel   name_() const;
        SdaiLabel   name_();
        void name_( const SdaiLabel x );


    //  part 4
    SdaiSurface_or_solid_model& operator =( const SdaiSurface_model_ptr& );
    SdaiSurface_or_solid_model& operator =( const SdaiSolid_model_ptr& );
    // not in SDAI
    SdaiSurface_or_solid_model& ShallowCopy ( const SdaiSurface_or_solid_model& );

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

    //  part 5
    Logical IsSurface_model() const;
    Logical IsSolid_model() const;

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

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

inline SDAI_Select * create_SdaiSurface_or_solid_model () { return new SdaiSurface_or_solid_model; }
typedef SdaiSurface_or_solid_model * SdaiSurface_or_solid_modelH;
typedef SdaiSurface_or_solid_model_ptr SdaiSurface_or_solid_model_var;


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

  public:
    SdaiSurface_or_solid_model_agg( SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_surface_or_solid_model );
    ~SdaiSurface_or_solid_model_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiSurface_or_solid_model( sel_type )); }
};
inline STEPaggregate * create_SdaiSurface_or_solid_model_agg () { return new SdaiSurface_or_solid_model_agg; }
typedef SdaiSurface_or_solid_model_agg_ptr SdaiSurface_or_solid_model_agg_var;

/////  END SELECT TYPE surface_or_solid_model

void init_SdaiSurface_or_solid_model(Registry& reg);

#endif
