#ifndef  TYPE_SDAITEXT_OR_CHARACTER_H
#define  TYPE_SDAITEXT_OR_CHARACTER_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 SdaiText_or_character
class SC_SCHEMA_EXPORT SdaiText_or_character  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   ANNOTATION_TEXT    --  sdaiINSTANCE
    //   ANNOTATION_TEXT_CHARACTER    --  sdaiINSTANCE
    //   COMPOSITE_TEXT    --  sdaiINSTANCE
    //   TEXT_LITERAL    --  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
    SdaiText_or_character( const SelectTypeDescriptor * =ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::t_text_or_character );
    //  part 1
    SdaiText_or_character( const SdaiAnnotation_text_ptr&,
                           const SelectTypeDescriptor * =ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::t_text_or_character );
    SdaiText_or_character( const SdaiAnnotation_text_character_ptr&,
                           const SelectTypeDescriptor * =ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::t_text_or_character );
    SdaiText_or_character( const SdaiComposite_text_ptr&,
                           const SelectTypeDescriptor * =ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::t_text_or_character );
    SdaiText_or_character( const SdaiText_literal_ptr&,
                           const SelectTypeDescriptor * =ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::t_text_or_character );
    virtual ~SdaiText_or_character();

    //  part 2
    operator SdaiAnnotation_text_ptr();
    operator SdaiAnnotation_text_character_ptr();
    operator SdaiComposite_text_ptr();
    operator SdaiText_literal_ptr();

    //  part 3
        SdaiFont_select_ptr_c font_() const;
        SdaiFont_select_ptr   font_();
        void font_( const SdaiFont_select_ptr x );

  const SdaiText_path_var   path_() const;
        SdaiText_path_var   path_();
        void path_( const SdaiText_path_var x );

        SdaiAxis2_placement_ptr_c placement_() const;
        SdaiAxis2_placement_ptr   placement_();
        void placement_( const SdaiAxis2_placement_ptr x );

  const SdaiPresentable_text   literal_() const;
        SdaiPresentable_text   literal_();
        void literal_( const SdaiPresentable_text x );

        SdaiText_or_character_agg_ptr_c collected_text_() const;
        SdaiText_or_character_agg_ptr   collected_text_();
        void collected_text_( const SdaiText_or_character_agg_ptr x );

  const SdaiText_alignment   alignment_() const;
        SdaiText_alignment   alignment_();
        void alignment_( const SdaiText_alignment x );

        SdaiAxis2_placement_ptr_c mapped_item_mapping_target_() const;
        SdaiAxis2_placement_ptr   mapped_item_mapping_target_();
        void mapped_item_mapping_target_( const SdaiAxis2_placement_ptr x );

        SdaiRepresentation_item_ptr_c mapping_target_() const;
        SdaiRepresentation_item_ptr   mapping_target_();
        void mapping_target_( const SdaiRepresentation_item_ptr x );

        SdaiRepresentation_map_ptr_c mapping_source_() const;
        SdaiRepresentation_map_ptr   mapping_source_();
        void mapping_source_( const SdaiRepresentation_map_ptr x );

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


    //  part 4
    SdaiText_or_character& operator =( const SdaiAnnotation_text_ptr& );
    SdaiText_or_character& operator =( const SdaiAnnotation_text_character_ptr& );
    SdaiText_or_character& operator =( const SdaiComposite_text_ptr& );
    SdaiText_or_character& operator =( const SdaiText_literal_ptr& );
    // not in SDAI
    SdaiText_or_character& ShallowCopy ( const SdaiText_or_character& );

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

    //  part 5
    Logical IsAnnotation_text() const;
    Logical IsAnnotation_text_character() const;
    Logical IsComposite_text() const;
    Logical IsText_literal() const;

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

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

inline SDAI_Select * create_SdaiText_or_character () { return new SdaiText_or_character; }
typedef SdaiText_or_character * SdaiText_or_characterH;
typedef SdaiText_or_character_ptr SdaiText_or_character_var;


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

  public:
    SdaiText_or_character_agg( SelectTypeDescriptor * =ap210_electronic_assembly_interconnect_and_packaging_design_mim_lf::t_text_or_character );
    ~SdaiText_or_character_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiText_or_character( sel_type )); }
};
inline STEPaggregate * create_SdaiText_or_character_agg () { return new SdaiText_or_character_agg; }
typedef SdaiText_or_character_agg_ptr SdaiText_or_character_agg_var;

/////  END SELECT TYPE text_or_character

void init_SdaiText_or_character(Registry& reg);

#endif
