#ifndef  TYPE_SDAIATOM_BASED_VALUE_H
#define  TYPE_SDAIATOM_BASED_VALUE_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 SdaiAtom_based_value
class SC_SCHEMA_EXPORT SdaiAtom_based_value  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   MATHS_ATOM    --  sdaiSELECT
    //   ATOM_BASED_TUPLE    --  LIST_TYPE
       SdaiMaths_atom _sdaimaths_atom;
       SdaiAtom_based_value_agg_ptr _sdaiatom_based_value_agg;

  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
    SdaiAtom_based_value( const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_atom_based_value );
    //  part 1
    SdaiAtom_based_value( const SdaiMaths_atom_ptr&,
                          const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_atom_based_value );
    SdaiAtom_based_value( const SdaiAtom_based_tuple_ptr&,
                          const SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_atom_based_value );
    virtual ~SdaiAtom_based_value();

    //  part 2
    operator SdaiMaths_atom_ptr();
    operator SdaiAtom_based_tuple_ptr();

    //  part 3

    //  part 4
    SdaiAtom_based_value& operator =( const SdaiMaths_atom_ptr& );
    SdaiAtom_based_value& operator =( const SdaiAtom_based_tuple_ptr& );
    // not in SDAI
    SdaiAtom_based_value& ShallowCopy ( const SdaiAtom_based_value& );

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

    //  part 5
    Logical IsMaths_atom() const;
    Logical IsAtom_based_tuple() const;

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

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

inline SDAI_Select * create_SdaiAtom_based_value () { return new SdaiAtom_based_value; }
typedef SdaiAtom_based_value * SdaiAtom_based_valueH;
typedef SdaiAtom_based_value_ptr SdaiAtom_based_value_var;


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

  public:
    SdaiAtom_based_value_agg( SelectTypeDescriptor * =ap242_managed_model_based_3d_engineering_mim_lf::t_atom_based_value );
    ~SdaiAtom_based_value_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiAtom_based_value( sel_type )); }
};
inline STEPaggregate * create_SdaiAtom_based_value_agg () { return new SdaiAtom_based_value_agg; }
typedef SdaiAtom_based_value_agg_ptr SdaiAtom_based_value_agg_var;

/////  END SELECT TYPE atom_based_value

void init_SdaiAtom_based_value(Registry& reg);

#endif
