#ifndef  TYPE_SDAIPROCESS_OR_PROCESS_RELATIONSHIP_H
#define  TYPE_SDAIPROCESS_OR_PROCESS_RELATIONSHIP_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 SdaiProcess_or_process_relationship
class SC_SCHEMA_EXPORT SdaiProcess_or_process_relationship  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   PRODUCT_DEFINITION_PROCESS    --  sdaiINSTANCE
    //   PROPERTY_PROCESS    --  sdaiINSTANCE
    //   RELATIONSHIP_WITH_CONDITION    --  sdaiSELECT
       SDAI_Application_instance_ptr _app_inst;
       SdaiRelationship_with_condition _sdairelationship_with_condition;

  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
    SdaiProcess_or_process_relationship( const SelectTypeDescriptor * =process_planning_schema::t_process_or_process_relationship );
    //  part 1
    SdaiProcess_or_process_relationship( const SdaiProduct_definition_process_ptr&,
                                         const SelectTypeDescriptor * =process_planning_schema::t_process_or_process_relationship );
    SdaiProcess_or_process_relationship( const SdaiProperty_process_ptr&,
                                         const SelectTypeDescriptor * =process_planning_schema::t_process_or_process_relationship );
    SdaiProcess_or_process_relationship( const SdaiRelationship_with_condition_ptr&,
                                         const SelectTypeDescriptor * =process_planning_schema::t_process_or_process_relationship );
    virtual ~SdaiProcess_or_process_relationship();

    //  part 2
    operator SdaiProduct_definition_process_ptr();
    operator SdaiProperty_process_ptr();
    operator SdaiRelationship_with_condition_ptr();

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

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

  const SdaiIdentifier   identification_() const;
        SdaiIdentifier   identification_();
        void identification_( const SdaiIdentifier x );

        SdaiAction_method_ptr_c chosen_method_() const;
        SdaiAction_method_ptr   chosen_method_();
        void chosen_method_( const SdaiAction_method_ptr x );

  const SdaiText   description_() const;
        SdaiText   description_();
        void description_( const SdaiText x );

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


    //  part 4
    SdaiProcess_or_process_relationship& operator =( const SdaiProduct_definition_process_ptr& );
    SdaiProcess_or_process_relationship& operator =( const SdaiProperty_process_ptr& );
    SdaiProcess_or_process_relationship& operator =( const SdaiRelationship_with_condition_ptr& );
    // not in SDAI
    SdaiProcess_or_process_relationship& ShallowCopy ( const SdaiProcess_or_process_relationship& );

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

    //  part 5
    Logical IsProduct_definition_process() const;
    Logical IsProperty_process() const;
    Logical IsRelationship_with_condition() const;

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

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

inline SDAI_Select * create_SdaiProcess_or_process_relationship () { return new SdaiProcess_or_process_relationship; }
typedef SdaiProcess_or_process_relationship * SdaiProcess_or_process_relationshipH;
typedef SdaiProcess_or_process_relationship_ptr SdaiProcess_or_process_relationship_var;


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

  public:
    SdaiProcess_or_process_relationship_agg( SelectTypeDescriptor * =process_planning_schema::t_process_or_process_relationship );
    ~SdaiProcess_or_process_relationship_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiProcess_or_process_relationship( sel_type )); }
};
inline STEPaggregate * create_SdaiProcess_or_process_relationship_agg () { return new SdaiProcess_or_process_relationship_agg; }
typedef SdaiProcess_or_process_relationship_agg_ptr SdaiProcess_or_process_relationship_agg_var;

/////  END SELECT TYPE process_or_process_relationship

void init_SdaiProcess_or_process_relationship(Registry& reg);

#endif
