#ifndef  TYPE_SDAILINEAR_GEOMETRY_CONSTRAINT_ELEMENT_H
#define  TYPE_SDAILINEAR_GEOMETRY_CONSTRAINT_ELEMENT_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 SdaiLinear_geometry_constraint_element
class SC_SCHEMA_EXPORT SdaiLinear_geometry_constraint_element  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   LINE    --  sdaiINSTANCE
    //   PLANE    --  sdaiINSTANCE
    //   DIRECTION    --  sdaiINSTANCE
    //   VECTOR    --  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
    SdaiLinear_geometry_constraint_element( const SelectTypeDescriptor * =ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::t_linear_geometry_constraint_element );
    //  part 1
    SdaiLinear_geometry_constraint_element( const SdaiLine_ptr&,
                                            const SelectTypeDescriptor * =ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::t_linear_geometry_constraint_element );
    SdaiLinear_geometry_constraint_element( const SdaiPlane_ptr&,
                                            const SelectTypeDescriptor * =ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::t_linear_geometry_constraint_element );
    SdaiLinear_geometry_constraint_element( const SdaiDirection_ptr&,
                                            const SelectTypeDescriptor * =ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::t_linear_geometry_constraint_element );
    SdaiLinear_geometry_constraint_element( const SdaiVector_ptr&,
                                            const SelectTypeDescriptor * =ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::t_linear_geometry_constraint_element );
    virtual ~SdaiLinear_geometry_constraint_element();

    //  part 2
    operator SdaiLine_ptr();
    operator SdaiPlane_ptr();
    operator SdaiDirection_ptr();
    operator SdaiVector_ptr();

    //  part 3
        SdaiLength_measure   magnitude_() const;
        void magnitude_( const SdaiLength_measure x );

        SdaiDirection_ptr_c orientation_() const;
        SdaiDirection_ptr   orientation_();
        void orientation_( const SdaiDirection_ptr x );

        RealAggregate_ptr_c direction_ratios_() const;
        RealAggregate_ptr   direction_ratios_();
        void direction_ratios_( const RealAggregate_ptr x );

        SdaiAxis2_placement_3d_ptr_c position_() const;
        SdaiAxis2_placement_3d_ptr   position_();
        void position_( const SdaiAxis2_placement_3d_ptr x );

        SdaiVector_ptr_c dir_() const;
        SdaiVector_ptr   dir_();
        void dir_( const SdaiVector_ptr x );

        SdaiCartesian_point_ptr_c pnt_() const;
        SdaiCartesian_point_ptr   pnt_();
        void pnt_( const SdaiCartesian_point_ptr x );

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


    //  part 4
    SdaiLinear_geometry_constraint_element& operator =( const SdaiLine_ptr& );
    SdaiLinear_geometry_constraint_element& operator =( const SdaiPlane_ptr& );
    SdaiLinear_geometry_constraint_element& operator =( const SdaiDirection_ptr& );
    SdaiLinear_geometry_constraint_element& operator =( const SdaiVector_ptr& );
    // not in SDAI
    SdaiLinear_geometry_constraint_element& ShallowCopy ( const SdaiLinear_geometry_constraint_element& );

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

    //  part 5
    Logical IsLine() const;
    Logical IsPlane() const;
    Logical IsDirection() const;
    Logical IsVector() const;

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

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

inline SDAI_Select * create_SdaiLinear_geometry_constraint_element () { return new SdaiLinear_geometry_constraint_element; }
typedef SdaiLinear_geometry_constraint_element * SdaiLinear_geometry_constraint_elementH;
typedef SdaiLinear_geometry_constraint_element_ptr SdaiLinear_geometry_constraint_element_var;


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

  public:
    SdaiLinear_geometry_constraint_element_agg( SelectTypeDescriptor * =ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::t_linear_geometry_constraint_element );
    ~SdaiLinear_geometry_constraint_element_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiLinear_geometry_constraint_element( sel_type )); }
};
inline STEPaggregate * create_SdaiLinear_geometry_constraint_element_agg () { return new SdaiLinear_geometry_constraint_element_agg; }
typedef SdaiLinear_geometry_constraint_element_agg_ptr SdaiLinear_geometry_constraint_element_agg_var;

/////  END SELECT TYPE linear_geometry_constraint_element

void init_SdaiLinear_geometry_constraint_element(Registry& reg);

#endif
