#ifndef  TYPE_SDAIMATHS_SIMPLE_ATOM_H
#define  TYPE_SDAIMATHS_SIMPLE_ATOM_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 SdaiMaths_simple_atom
class SC_SCHEMA_EXPORT SdaiMaths_simple_atom  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   MATHS_NUMBER    --  sdaiNUMBER
    //   MATHS_REAL    --  sdaiREAL
    //   MATHS_INTEGER    --  sdaiINTEGER
    //   MATHS_LOGICAL    --  sdaiLOGICAL
    //   MATHS_BOOLEAN    --  sdaiBOOLEAN
    //   MATHS_STRING    --  sdaiSTRING
    //   MATHS_BINARY    --  sdaiBINARY
       SDAI_Real _real;
       SDAI_Integer _integer;
       SDAI_LOGICAL _logical;
       SDAI_BOOLEAN _boolean;
       SDAI_String _string;
       SDAI_Binary _binary;

  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
    SdaiMaths_simple_atom( const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_maths_simple_atom );
    //  part 1
    SdaiMaths_simple_atom( const SdaiMaths_integer&,
                           const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_maths_simple_atom );
    SdaiMaths_simple_atom( const Logical&,
                           const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_maths_simple_atom );
    SdaiMaths_simple_atom( const Boolean&,
                           const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_maths_simple_atom );
    SdaiMaths_simple_atom( const SdaiMaths_string&,
                           const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_maths_simple_atom );
    SdaiMaths_simple_atom( const SdaiMaths_binary&,
                           const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_maths_simple_atom );
    SdaiMaths_simple_atom( const SDAI_Real&,
                           const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_maths_simple_atom );
    virtual ~SdaiMaths_simple_atom();

    //  part 2
    operator SdaiMaths_integer();
    operator Logical();
    operator Boolean();
    operator SdaiMaths_string();
    operator SdaiMaths_binary();
    operator SDAI_Real ();

    //  part 3

    //  part 4
    SdaiMaths_simple_atom& operator =( const SdaiMaths_integer& );
    SdaiMaths_simple_atom& operator =( const Logical& );
    SdaiMaths_simple_atom& operator =( const Boolean& );
    SdaiMaths_simple_atom& operator =( const SdaiMaths_string& );
    SdaiMaths_simple_atom& operator =( const SdaiMaths_binary& );
    SdaiMaths_simple_atom& operator =( const SDAI_Real& );
    // not in SDAI
    SdaiMaths_simple_atom& ShallowCopy ( const SdaiMaths_simple_atom& );

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

    //  part 5
    Logical IsMaths_number() const;
    Logical IsMaths_real() const;
    Logical IsMaths_integer() const;
    Logical IsMaths_logical() const;
    Logical IsMaths_boolean() const;
    Logical IsMaths_string() const;
    Logical IsMaths_binary() const;

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

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

inline SDAI_Select * create_SdaiMaths_simple_atom () { return new SdaiMaths_simple_atom; }
typedef SdaiMaths_simple_atom * SdaiMaths_simple_atomH;
typedef SdaiMaths_simple_atom_ptr SdaiMaths_simple_atom_var;


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

  public:
    SdaiMaths_simple_atom_agg( SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_maths_simple_atom );
    ~SdaiMaths_simple_atom_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiMaths_simple_atom( sel_type )); }
};
inline STEPaggregate * create_SdaiMaths_simple_atom_agg () { return new SdaiMaths_simple_atom_agg; }
typedef SdaiMaths_simple_atom_agg_ptr SdaiMaths_simple_atom_agg_var;

/////  END SELECT TYPE maths_simple_atom

void init_SdaiMaths_simple_atom(Registry& reg);

#endif
