#ifndef  TYPE_SDAIRELATIONSHIP_WITH_CONDITION_H
#define  TYPE_SDAIRELATIONSHIP_WITH_CONDITION_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 SdaiRelationship_with_condition
class SC_SCHEMA_EXPORT SdaiRelationship_with_condition  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   ACTION_METHOD_RELATIONSHIP    --  sdaiINSTANCE
    //   ACTION_RELATIONSHIP    --  sdaiINSTANCE
    //   CONTEXT_DEPENDENT_ACTION_METHOD_RELATIONSHIP    --  sdaiINSTANCE
    //   CONTEXT_DEPENDENT_ACTION_RELATIONSHIP    --  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
    SdaiRelationship_with_condition( const SelectTypeDescriptor * =engineering_properties_schema::t_relationship_with_condition );
    //  part 1
    SdaiRelationship_with_condition( const SdaiAction_method_relationship_ptr&,
                                     const SelectTypeDescriptor * =engineering_properties_schema::t_relationship_with_condition );
    SdaiRelationship_with_condition( const SdaiAction_relationship_ptr&,
                                     const SelectTypeDescriptor * =engineering_properties_schema::t_relationship_with_condition );
    SdaiRelationship_with_condition( const SdaiContext_dependent_action_method_relationship_ptr&,
                                     const SelectTypeDescriptor * =engineering_properties_schema::t_relationship_with_condition );
    SdaiRelationship_with_condition( const SdaiContext_dependent_action_relationship_ptr&,
                                     const SelectTypeDescriptor * =engineering_properties_schema::t_relationship_with_condition );
    virtual ~SdaiRelationship_with_condition();

    //  part 2
    operator SdaiAction_method_relationship_ptr();
    operator SdaiAction_relationship_ptr();
    operator SdaiContext_dependent_action_method_relationship_ptr();
    operator SdaiContext_dependent_action_relationship_ptr();

    //  part 3
        SdaiAction_method_relationship_ptr_c related_relationship_() const;
        SdaiAction_method_relationship_ptr   related_relationship_();
        void related_relationship_( const SdaiAction_method_relationship_ptr x );

        SdaiAction_method_relationship_ptr_c relating_relationship_() const;
        SdaiAction_method_relationship_ptr   relating_relationship_();
        void relating_relationship_( const SdaiAction_method_relationship_ptr x );

        SdaiAction_ptr_c related_action_() const;
        SdaiAction_ptr   related_action_();
        void related_action_( const SdaiAction_ptr x );

        SdaiAction_ptr_c relating_action_() const;
        SdaiAction_ptr   relating_action_();
        void relating_action_( const SdaiAction_ptr x );

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

        SdaiAction_method_ptr_c relating_method_() const;
        SdaiAction_method_ptr   relating_method_();
        void relating_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
    SdaiRelationship_with_condition& operator =( const SdaiAction_method_relationship_ptr& );
    SdaiRelationship_with_condition& operator =( const SdaiAction_relationship_ptr& );
    SdaiRelationship_with_condition& operator =( const SdaiContext_dependent_action_method_relationship_ptr& );
    SdaiRelationship_with_condition& operator =( const SdaiContext_dependent_action_relationship_ptr& );
    // not in SDAI
    SdaiRelationship_with_condition& ShallowCopy ( const SdaiRelationship_with_condition& );

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

    //  part 5
    Logical IsAction_method_relationship() const;
    Logical IsAction_relationship() const;
    Logical IsContext_dependent_action_method_relationship() const;
    Logical IsContext_dependent_action_relationship() const;

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

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

inline SDAI_Select * create_SdaiRelationship_with_condition () { return new SdaiRelationship_with_condition; }
typedef SdaiRelationship_with_condition * SdaiRelationship_with_conditionH;
typedef SdaiRelationship_with_condition_ptr SdaiRelationship_with_condition_var;


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

  public:
    SdaiRelationship_with_condition_agg( SelectTypeDescriptor * =engineering_properties_schema::t_relationship_with_condition );
    ~SdaiRelationship_with_condition_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiRelationship_with_condition( sel_type )); }
};
inline STEPaggregate * create_SdaiRelationship_with_condition_agg () { return new SdaiRelationship_with_condition_agg; }
typedef SdaiRelationship_with_condition_agg_ptr SdaiRelationship_with_condition_agg_var;

/////  END SELECT TYPE relationship_with_condition

void init_SdaiRelationship_with_condition(Registry& reg);

#endif
