#ifndef  TYPE_SDAICONNECTION_DEFINITION_ITEMS_H
#define  TYPE_SDAICONNECTION_DEFINITION_ITEMS_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 SdaiConnection_definition_items
class SC_SCHEMA_EXPORT SdaiConnection_definition_items  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   INTERFACE_CONNECTOR_DEFINITION    --  sdaiINSTANCE
    //   PRODUCT_VIEW_DEFINITION    --  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
    SdaiConnection_definition_items( const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_connection_definition_items );
    //  part 1
    SdaiConnection_definition_items( const SdaiInterface_connector_definition_ptr&,
                                     const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_connection_definition_items );
    SdaiConnection_definition_items( const SdaiProduct_view_definition_ptr&,
                                     const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_connection_definition_items );
    virtual ~SdaiConnection_definition_items();

    //  part 2
    operator SdaiInterface_connector_definition_ptr();
    operator SdaiProduct_view_definition_ptr();

    //  part 3
        SdaiInterface_connector_version_ptr_c product_view_definition_defined_version_() const;
        SdaiInterface_connector_version_ptr   product_view_definition_defined_version_();
        void product_view_definition_defined_version_( const SdaiInterface_connector_version_ptr x );

        SdaiProduct_view_definition_ptr_c connector_on_() const;
        SdaiProduct_view_definition_ptr   connector_on_();
        void connector_on_( const SdaiProduct_view_definition_ptr x );

        SdaiProduct_version_ptr_c defined_version_() const;
        SdaiProduct_version_ptr   defined_version_();
        void defined_version_( const SdaiProduct_version_ptr x );

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

        SdaiView_definition_context_ptr_c initial_context_() const;
        SdaiView_definition_context_ptr   initial_context_();
        void initial_context_( const SdaiView_definition_context_ptr x );

  const SDAI_String   additional_characterization_() const;
        SDAI_String   additional_characterization_();
        void additional_characterization_( const SDAI_String x );

  const SDAI_String   name_() const;
        SDAI_String   name_();
        void name_( const SDAI_String x );

  const SDAI_String   id_() const;
        SDAI_String   id_();
        void id_( const SDAI_String x );


    //  part 4
    SdaiConnection_definition_items& operator =( const SdaiInterface_connector_definition_ptr& );
    SdaiConnection_definition_items& operator =( const SdaiProduct_view_definition_ptr& );
    // not in SDAI
    SdaiConnection_definition_items& ShallowCopy ( const SdaiConnection_definition_items& );

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

    //  part 5
    Logical IsInterface_connector_definition() const;
    Logical IsProduct_view_definition() const;

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

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

inline SDAI_Select * create_SdaiConnection_definition_items () { return new SdaiConnection_definition_items; }
typedef SdaiConnection_definition_items * SdaiConnection_definition_itemsH;
typedef SdaiConnection_definition_items_ptr SdaiConnection_definition_items_var;


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

  public:
    SdaiConnection_definition_items_agg( SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_connection_definition_items );
    ~SdaiConnection_definition_items_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiConnection_definition_items( sel_type )); }
};
inline STEPaggregate * create_SdaiConnection_definition_items_agg () { return new SdaiConnection_definition_items_agg; }
typedef SdaiConnection_definition_items_agg_ptr SdaiConnection_definition_items_agg_var;

/////  END SELECT TYPE connection_definition_items

void init_SdaiConnection_definition_items(Registry& reg);

#endif
