#ifndef  TYPE_SDAIBOOLEAN_OPERAND_H
#define  TYPE_SDAIBOOLEAN_OPERAND_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 SdaiBoolean_operand
class SC_SCHEMA_EXPORT SdaiBoolean_operand  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   BOOLEAN_RESULT    --  sdaiINSTANCE
    //   CSG_PRIMITIVE    --  sdaiSELECT
    //   HALF_SPACE_2D    --  sdaiINSTANCE
    //   HALF_SPACE_SOLID    --  sdaiINSTANCE
    //   SOLID_MODEL    --  sdaiINSTANCE
       SDAI_Application_instance_ptr _app_inst;
       SdaiCsg_primitive _sdaicsg_primitive;

  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
    SdaiBoolean_operand( const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_boolean_operand );
    //  part 1
    SdaiBoolean_operand( const SdaiBoolean_result_ptr&,
                         const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_boolean_operand );
    SdaiBoolean_operand( const SdaiCsg_primitive_ptr&,
                         const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_boolean_operand );
    SdaiBoolean_operand( const SdaiHalf_space_2d_ptr&,
                         const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_boolean_operand );
    SdaiBoolean_operand( const SdaiHalf_space_solid_ptr&,
                         const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_boolean_operand );
    SdaiBoolean_operand( const SdaiSolid_model_ptr&,
                         const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_boolean_operand );
    virtual ~SdaiBoolean_operand();

    //  part 2
    operator SdaiBoolean_result_ptr();
    operator SdaiCsg_primitive_ptr();
    operator SdaiHalf_space_2d_ptr();
    operator SdaiHalf_space_solid_ptr();
    operator SdaiSolid_model_ptr();

    //  part 3
        SdaiSurface_ptr_c base_surface_() const;
        SdaiSurface_ptr   base_surface_();
        void base_surface_( const SdaiSurface_ptr x );

        Boolean   agreement_flag_() const;
        void agreement_flag_( const Boolean x );

        SdaiCurve_ptr_c base_curve_() const;
        SdaiCurve_ptr   base_curve_();
        void base_curve_( const SdaiCurve_ptr x );

        SdaiBoolean_operand_ptr_c second_operand_() const;
        SdaiBoolean_operand_ptr   second_operand_();
        void second_operand_( const SdaiBoolean_operand_ptr x );

        SdaiBoolean_operand_ptr_c first_operand_() const;
        SdaiBoolean_operand_ptr   first_operand_();
        void first_operand_( const SdaiBoolean_operand_ptr x );

  const SdaiBoolean_operator_var   operator_() const;
        SdaiBoolean_operator_var   operator_();
        void operator_( const SdaiBoolean_operator_var x );

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


    //  part 4
    SdaiBoolean_operand& operator =( const SdaiBoolean_result_ptr& );
    SdaiBoolean_operand& operator =( const SdaiCsg_primitive_ptr& );
    SdaiBoolean_operand& operator =( const SdaiHalf_space_2d_ptr& );
    SdaiBoolean_operand& operator =( const SdaiHalf_space_solid_ptr& );
    SdaiBoolean_operand& operator =( const SdaiSolid_model_ptr& );
    // not in SDAI
    SdaiBoolean_operand& ShallowCopy ( const SdaiBoolean_operand& );

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

    //  part 5
    Logical IsBoolean_result() const;
    Logical IsCsg_primitive() const;
    Logical IsHalf_space_2d() const;
    Logical IsHalf_space_solid() const;
    Logical IsSolid_model() const;

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

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

inline SDAI_Select * create_SdaiBoolean_operand () { return new SdaiBoolean_operand; }
typedef SdaiBoolean_operand * SdaiBoolean_operandH;
typedef SdaiBoolean_operand_ptr SdaiBoolean_operand_var;


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

  public:
    SdaiBoolean_operand_agg( SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_boolean_operand );
    ~SdaiBoolean_operand_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiBoolean_operand( sel_type )); }
};
inline STEPaggregate * create_SdaiBoolean_operand_agg () { return new SdaiBoolean_operand_agg; }
typedef SdaiBoolean_operand_agg_ptr SdaiBoolean_operand_agg_var;

/////  END SELECT TYPE boolean_operand

void init_SdaiBoolean_operand(Registry& reg);

#endif
