#ifndef  TYPE_SDAICSG_SELECT_H
#define  TYPE_SDAICSG_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 SdaiCsg_select
class SC_SCHEMA_EXPORT SdaiCsg_select  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   BOOLEAN_RESULT    --  sdaiINSTANCE
    //   CSG_PRIMITIVE    --  sdaiSELECT
       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
    SdaiCsg_select( const SelectTypeDescriptor * =ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::t_csg_select );
    //  part 1
    SdaiCsg_select( const SdaiBoolean_result_ptr&,
                    const SelectTypeDescriptor * =ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::t_csg_select );
    SdaiCsg_select( const SdaiCsg_primitive_ptr&,
                    const SelectTypeDescriptor * =ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::t_csg_select );
    virtual ~SdaiCsg_select();

    //  part 2
    operator SdaiBoolean_result_ptr();
    operator SdaiCsg_primitive_ptr();

    //  part 3
        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
    SdaiCsg_select& operator =( const SdaiBoolean_result_ptr& );
    SdaiCsg_select& operator =( const SdaiCsg_primitive_ptr& );
    // not in SDAI
    SdaiCsg_select& ShallowCopy ( const SdaiCsg_select& );

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

    //  part 5
    Logical IsBoolean_result() const;
    Logical IsCsg_primitive() const;

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

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

inline SDAI_Select * create_SdaiCsg_select () { return new SdaiCsg_select; }
typedef SdaiCsg_select * SdaiCsg_selectH;
typedef SdaiCsg_select_ptr SdaiCsg_select_var;


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

  public:
    SdaiCsg_select_agg( SelectTypeDescriptor * =ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::t_csg_select );
    ~SdaiCsg_select_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiCsg_select( sel_type )); }
};
inline STEPaggregate * create_SdaiCsg_select_agg () { return new SdaiCsg_select_agg; }
typedef SdaiCsg_select_agg_ptr SdaiCsg_select_agg_var;

/////  END SELECT TYPE csg_select

void init_SdaiCsg_select(Registry& reg);

#endif
