#ifndef  TYPE_SDAIGEOMETRIC_MODEL_ITEM_H
#define  TYPE_SDAIGEOMETRIC_MODEL_ITEM_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 SdaiGeometric_model_item
class SC_SCHEMA_EXPORT SdaiGeometric_model_item  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   CONNECTED_FACE_SET    --  sdaiINSTANCE
    //   EDGE_LOOP    --  sdaiINSTANCE
    //   GEOMETRIC_REPRESENTATION_ITEM    --  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
    SdaiGeometric_model_item( const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_geometric_model_item );
    //  part 1
    SdaiGeometric_model_item( const SdaiConnected_face_set_ptr&,
                              const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_geometric_model_item );
    SdaiGeometric_model_item( const SdaiEdge_loop_ptr&,
                              const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_geometric_model_item );
    SdaiGeometric_model_item( const SdaiGeometric_representation_item_ptr&,
                              const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_geometric_model_item );
    virtual ~SdaiGeometric_model_item();

    //  part 2
    operator SdaiConnected_face_set_ptr();
    operator SdaiEdge_loop_ptr();
    operator SdaiGeometric_representation_item_ptr();

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

        EntityAggregate_ptr_c cfs_faces_() const;
        EntityAggregate_ptr   cfs_faces_();
        void cfs_faces_( const EntityAggregate_ptr x );

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


    //  part 4
    SdaiGeometric_model_item& operator =( const SdaiConnected_face_set_ptr& );
    SdaiGeometric_model_item& operator =( const SdaiEdge_loop_ptr& );
    SdaiGeometric_model_item& operator =( const SdaiGeometric_representation_item_ptr& );
    // not in SDAI
    SdaiGeometric_model_item& ShallowCopy ( const SdaiGeometric_model_item& );

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

    //  part 5
    Logical IsConnected_face_set() const;
    Logical IsEdge_loop() const;
    Logical IsGeometric_representation_item() const;

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

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

inline SDAI_Select * create_SdaiGeometric_model_item () { return new SdaiGeometric_model_item; }
typedef SdaiGeometric_model_item * SdaiGeometric_model_itemH;
typedef SdaiGeometric_model_item_ptr SdaiGeometric_model_item_var;


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

  public:
    SdaiGeometric_model_item_agg( SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_geometric_model_item );
    ~SdaiGeometric_model_item_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiGeometric_model_item( sel_type )); }
};
inline STEPaggregate * create_SdaiGeometric_model_item_agg () { return new SdaiGeometric_model_item_agg; }
typedef SdaiGeometric_model_item_agg_ptr SdaiGeometric_model_item_agg_var;

/////  END SELECT TYPE geometric_model_item

void init_SdaiGeometric_model_item(Registry& reg);

#endif
