#ifndef  TYPE_SDAITENSOR_TYPE_H
#define  TYPE_SDAITENSOR_TYPE_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 SdaiTensor_type
class SC_SCHEMA_EXPORT SdaiTensor_type  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   SCALAR    --  sdaiREAL
    //   ANGULAR_VALUE    --  sdaiREAL
    //   TENSOR1_2D    --  ARRAY_TYPE
    //   TENSOR1_3D    --  ARRAY_TYPE
    //   ANISOTROPIC_SYMMETRIC_TENSOR2_2D    --  ARRAY_TYPE
    //   ISOTROPIC_SYMMETRIC_TENSOR2_3D    --  sdaiREAL
    //   ORTHOTROPIC_SYMMETRIC_TENSOR2_3D    --  ARRAY_TYPE
    //   ANISOTROPIC_SYMMETRIC_TENSOR2_3D    --  ARRAY_TYPE
    //   ANISOTROPIC_SYMMETRIC_TENSOR4_2D    --  ARRAY_TYPE
    //   ANISOTROPIC_SYMMETRIC_TENSOR4_3D    --  ARRAY_TYPE
    //   FEA_ISOTROPIC_SYMMETRIC_TENSOR4_3D    --  ARRAY_TYPE
    //   FEA_ISO_ORTHOTROPIC_SYMMETRIC_TENSOR4_3D    --  ARRAY_TYPE
    //   FEA_TRANSVERSE_ISOTROPIC_SYMMETRIC_TENSOR4_3D    --  ARRAY_TYPE
    //   FEA_COLUMN_NORMALISED_ORTHOTROPIC_SYMMETRIC_TENSOR4_3D    --  ARRAY_TYPE
    //   FEA_COLUMN_NORMALISED_MONOCLINIC_SYMMETRIC_TENSOR4_3D    --  ARRAY_TYPE
       SDAI_Real _real;
       RealAggregate_ptr _realaggregate;

  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
    SdaiTensor_type( const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_tensor_type );
    //  part 1
    SdaiTensor_type( const SdaiTensor1_3d_ptr&,
                     const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_tensor_type );
    SdaiTensor_type( const SDAI_Real&,
                     const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_tensor_type );
    virtual ~SdaiTensor_type();

    //  part 2
    operator SdaiTensor1_3d_ptr ();
    operator SDAI_Real ();

    //  part 3

    //  part 4
    SdaiTensor_type& operator =( const SdaiTensor1_3d_ptr& );
    SdaiTensor_type& operator =( const SDAI_Real& );
    // not in SDAI
    SdaiTensor_type& ShallowCopy ( const SdaiTensor_type& );

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

    //  part 5
    Logical IsScalar() const;
    Logical IsAngular_value() const;
    Logical IsTensor1_2d() const;
    Logical IsTensor1_3d() const;
    Logical IsAnisotropic_symmetric_tensor2_2d() const;
    Logical IsIsotropic_symmetric_tensor2_3d() const;
    Logical IsOrthotropic_symmetric_tensor2_3d() const;
    Logical IsAnisotropic_symmetric_tensor2_3d() const;
    Logical IsAnisotropic_symmetric_tensor4_2d() const;
    Logical IsAnisotropic_symmetric_tensor4_3d() const;
    Logical IsFea_isotropic_symmetric_tensor4_3d() const;
    Logical IsFea_iso_orthotropic_symmetric_tensor4_3d() const;
    Logical IsFea_transverse_isotropic_symmetric_tensor4_3d() const;
    Logical IsFea_column_normalised_orthotropic_symmetric_tensor4_3d() const;
    Logical IsFea_column_normalised_monoclinic_symmetric_tensor4_3d() const;

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

    //  part 7
    const TypeDescriptor *SetUnderlyingType ( const TypeDescriptor * td );
};

inline SDAI_Select * create_SdaiTensor_type () { return new SdaiTensor_type; }
typedef SdaiTensor_type * SdaiTensor_typeH;
typedef SdaiTensor_type_ptr SdaiTensor_type_var;


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

  public:
    SdaiTensor_type_agg( SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_tensor_type );
    ~SdaiTensor_type_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiTensor_type( sel_type )); }
};
inline STEPaggregate * create_SdaiTensor_type_agg () { return new SdaiTensor_type_agg; }
typedef SdaiTensor_type_agg_ptr SdaiTensor_type_agg_var;

/////  END SELECT TYPE tensor_type

void init_SdaiTensor_type(Registry& reg);

#endif
