#ifndef  TYPE_SDAISTATE_OR_STATE_DEFINITION_SELECT_H
#define  TYPE_SDAISTATE_OR_STATE_DEFINITION_SELECT_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 SdaiState_or_state_definition_select
class SC_SCHEMA_EXPORT SdaiState_or_state_definition_select  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   APPLIED_STATE_ASSIGNMENT    --  sdaiINSTANCE
    //   APPLIED_STATE_DEFINITION_ASSIGNMENT    --  sdaiINSTANCE
    //   STATE    --  sdaiINSTANCE
    //   STATE_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
    SdaiState_or_state_definition_select( const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_state_or_state_definition_select );
    //  part 1
    SdaiState_or_state_definition_select( const SdaiApplied_state_assignment_ptr&,
                                          const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_state_or_state_definition_select );
    SdaiState_or_state_definition_select( const SdaiApplied_state_definition_assignment_ptr&,
                                          const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_state_or_state_definition_select );
    SdaiState_or_state_definition_select( const SdaiState_ptr&,
                                          const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_state_or_state_definition_select );
    SdaiState_or_state_definition_select( const SdaiState_definition_ptr&,
                                          const SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_state_or_state_definition_select );
    virtual ~SdaiState_or_state_definition_select();

    //  part 2
    operator SdaiApplied_state_assignment_ptr();
    operator SdaiApplied_state_definition_assignment_ptr();
    operator SdaiState_ptr();
    operator SdaiState_definition_ptr();

    //  part 3
  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 );

        SdaiState_definition_ptr_c described_state_definition_() const;
        SdaiState_definition_ptr   described_state_definition_();
        void described_state_definition_( const SdaiState_definition_ptr x );

        SdaiState_role_ptr_c role_() const;
        SdaiState_role_ptr   role_();
        void role_( const SdaiState_role_ptr x );

        SdaiState_of_item_ptr_c assigned_to_() const;
        SdaiState_of_item_ptr   assigned_to_();
        void assigned_to_( const SdaiState_of_item_ptr x );

        SdaiState_ptr_c described_state_() const;
        SdaiState_ptr   described_state_();
        void described_state_( const SdaiState_ptr x );


    //  part 4
    SdaiState_or_state_definition_select& operator =( const SdaiApplied_state_assignment_ptr& );
    SdaiState_or_state_definition_select& operator =( const SdaiApplied_state_definition_assignment_ptr& );
    SdaiState_or_state_definition_select& operator =( const SdaiState_ptr& );
    SdaiState_or_state_definition_select& operator =( const SdaiState_definition_ptr& );
    // not in SDAI
    SdaiState_or_state_definition_select& ShallowCopy ( const SdaiState_or_state_definition_select& );

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

    //  part 5
    Logical IsApplied_state_assignment() const;
    Logical IsApplied_state_definition_assignment() const;
    Logical IsState() const;
    Logical IsState_definition() const;

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

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

inline SDAI_Select * create_SdaiState_or_state_definition_select () { return new SdaiState_or_state_definition_select; }
typedef SdaiState_or_state_definition_select * SdaiState_or_state_definition_selectH;
typedef SdaiState_or_state_definition_select_ptr SdaiState_or_state_definition_select_var;


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

  public:
    SdaiState_or_state_definition_select_agg( SelectTypeDescriptor * =ap239_product_life_cycle_support_arm_lf::t_state_or_state_definition_select );
    ~SdaiState_or_state_definition_select_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiState_or_state_definition_select( sel_type )); }
};
inline STEPaggregate * create_SdaiState_or_state_definition_select_agg () { return new SdaiState_or_state_definition_select_agg; }
typedef SdaiState_or_state_definition_select_agg_ptr SdaiState_or_state_definition_select_agg_var;

/////  END SELECT TYPE state_or_state_definition_select

void init_SdaiState_or_state_definition_select(Registry& reg);

#endif
