#ifndef  TYPE_SDAIPOSITION_CONTEXT_ITEM_H
#define  TYPE_SDAIPOSITION_CONTEXT_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 SdaiPosition_context_item
class SC_SCHEMA_EXPORT SdaiPosition_context_item  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   ORGANIZATION    --  sdaiINSTANCE
    //   POSITION_GROUP    --  sdaiINSTANCE
    //   PROJECT    --  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
    SdaiPosition_context_item( const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_position_context_item );
    //  part 1
    SdaiPosition_context_item( const SdaiOrganization_ptr&,
                               const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_position_context_item );
    SdaiPosition_context_item( const SdaiPosition_group_ptr&,
                               const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_position_context_item );
    SdaiPosition_context_item( const SdaiProject_ptr&,
                               const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_position_context_item );
    virtual ~SdaiPosition_context_item();

    //  part 2
    operator SdaiOrganization_ptr();
    operator SdaiPosition_group_ptr();
    operator SdaiProject_ptr();

    //  part 3
        SdaiDate_or_date_time_select_ptr_c actual_end_date_() const;
        SdaiDate_or_date_time_select_ptr   actual_end_date_();
        void actual_end_date_( const SdaiDate_or_date_time_select_ptr x );

        SdaiDate_or_date_time_select_ptr_c actual_start_date_() const;
        SdaiDate_or_date_time_select_ptr   actual_start_date_();
        void actual_start_date_( const SdaiDate_or_date_time_select_ptr x );

        SdaiDate_or_event_ptr_c planned_end_date_() const;
        SdaiDate_or_event_ptr   planned_end_date_();
        void planned_end_date_( const SdaiDate_or_event_ptr x );

        SdaiDate_or_event_ptr_c planned_start_date_() const;
        SdaiDate_or_event_ptr   planned_start_date_();
        void planned_start_date_( const SdaiDate_or_event_ptr x );

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

  const SDAI_String   description_() const;
        SDAI_String   description_();
        void description_( 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
    SdaiPosition_context_item& operator =( const SdaiOrganization_ptr& );
    SdaiPosition_context_item& operator =( const SdaiPosition_group_ptr& );
    SdaiPosition_context_item& operator =( const SdaiProject_ptr& );
    // not in SDAI
    SdaiPosition_context_item& ShallowCopy ( const SdaiPosition_context_item& );

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

    //  part 5
    Logical IsOrganization() const;
    Logical IsPosition_group() const;
    Logical IsProject() const;

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

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

inline SDAI_Select * create_SdaiPosition_context_item () { return new SdaiPosition_context_item; }
typedef SdaiPosition_context_item * SdaiPosition_context_itemH;
typedef SdaiPosition_context_item_ptr SdaiPosition_context_item_var;


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

  public:
    SdaiPosition_context_item_agg( SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_position_context_item );
    ~SdaiPosition_context_item_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiPosition_context_item( sel_type )); }
};
inline STEPaggregate * create_SdaiPosition_context_item_agg () { return new SdaiPosition_context_item_agg; }
typedef SdaiPosition_context_item_agg_ptr SdaiPosition_context_item_agg_var;

/////  END SELECT TYPE position_context_item

void init_SdaiPosition_context_item(Registry& reg);

#endif
