#ifndef  TYPE_SDAIATTRIBUTE_TYPE_H
#define  TYPE_SDAIATTRIBUTE_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 SdaiAttribute_type
class SC_SCHEMA_EXPORT SdaiAttribute_type  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   LABEL    --  sdaiSTRING
    //   TEXT    --  sdaiSTRING
       SDAI_String _string;

  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
    SdaiAttribute_type( const SelectTypeDescriptor * =engineering_properties_schema::t_attribute_type );
    //  part 1
    SdaiAttribute_type( const SDAI_String&,
                        const SelectTypeDescriptor * =engineering_properties_schema::t_attribute_type );
    virtual ~SdaiAttribute_type();

    //  part 2
    operator SDAI_String ();

    //  part 3

    //  part 4
    SdaiAttribute_type& operator =( const SDAI_String& );
    // not in SDAI
    SdaiAttribute_type& ShallowCopy ( const SdaiAttribute_type& );

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

    //  part 5
    Logical IsLabel() const;
    Logical IsText() const;

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

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

inline SDAI_Select * create_SdaiAttribute_type () { return new SdaiAttribute_type; }
typedef SdaiAttribute_type * SdaiAttribute_typeH;
typedef SdaiAttribute_type_ptr SdaiAttribute_type_var;


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

  public:
    SdaiAttribute_type_agg( SelectTypeDescriptor * =engineering_properties_schema::t_attribute_type );
    ~SdaiAttribute_type_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiAttribute_type( sel_type )); }
};
inline STEPaggregate * create_SdaiAttribute_type_agg () { return new SdaiAttribute_type_agg; }
typedef SdaiAttribute_type_agg_ptr SdaiAttribute_type_agg_var;

/////  END SELECT TYPE attribute_type

void init_SdaiAttribute_type(Registry& reg);

#endif
