#ifndef  TYPE_SDAILAYERED_ITEM_H
#define  TYPE_SDAILAYERED_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 SdaiLayered_item
class SC_SCHEMA_EXPORT SdaiLayered_item  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   PRESENTATION_REPRESENTATION    --  sdaiINSTANCE
    //   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
    SdaiLayered_item( const SelectTypeDescriptor * =automotive_design::t_layered_item );
    //  part 1
    SdaiLayered_item( const SdaiPresentation_representation_ptr&,
                      const SelectTypeDescriptor * =automotive_design::t_layered_item );
    SdaiLayered_item( const SdaiRepresentation_item_ptr&,
                      const SelectTypeDescriptor * =automotive_design::t_layered_item );
    virtual ~SdaiLayered_item();

    //  part 2
    operator SdaiPresentation_representation_ptr();
    operator SdaiRepresentation_item_ptr();

    //  part 3
        SdaiGeometric_representation_context_ptr_c representation_context_of_items_() const;
        SdaiGeometric_representation_context_ptr   representation_context_of_items_();
        void representation_context_of_items_( const SdaiGeometric_representation_context_ptr x );

        SdaiRepresentation_context_ptr_c context_of_items_() const;
        SdaiRepresentation_context_ptr   context_of_items_();
        void context_of_items_( const SdaiRepresentation_context_ptr x );

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

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


    //  part 4
    SdaiLayered_item& operator =( const SdaiPresentation_representation_ptr& );
    SdaiLayered_item& operator =( const SdaiRepresentation_item_ptr& );
    // not in SDAI
    SdaiLayered_item& ShallowCopy ( const SdaiLayered_item& );

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

    //  part 5
    Logical IsPresentation_representation() const;
    Logical IsRepresentation_item() const;

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

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

inline SDAI_Select * create_SdaiLayered_item () { return new SdaiLayered_item; }
typedef SdaiLayered_item * SdaiLayered_itemH;
typedef SdaiLayered_item_ptr SdaiLayered_item_var;


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

  public:
    SdaiLayered_item_agg( SelectTypeDescriptor * =automotive_design::t_layered_item );
    ~SdaiLayered_item_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiLayered_item( sel_type )); }
};
inline STEPaggregate * create_SdaiLayered_item_agg () { return new SdaiLayered_item_agg; }
typedef SdaiLayered_item_agg_ptr SdaiLayered_item_agg_var;

/////  END SELECT TYPE layered_item

void init_SdaiLayered_item(Registry& reg);

#endif
