#ifndef  TYPE_SDAIREPRESENTED_DEFINITION_H
#define  TYPE_SDAIREPRESENTED_DEFINITION_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 SdaiRepresented_definition
class SC_SCHEMA_EXPORT SdaiRepresented_definition  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   GENERAL_PROPERTY    --  sdaiINSTANCE
    //   PROPERTY_DEFINITION    --  sdaiINSTANCE
    //   PROPERTY_DEFINITION_RELATIONSHIP    --  sdaiINSTANCE
    //   SHAPE_ASPECT    --  sdaiINSTANCE
    //   SHAPE_ASPECT_RELATIONSHIP    --  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
    SdaiRepresented_definition( const SelectTypeDescriptor * =process_planning_schema::t_represented_definition );
    //  part 1
    SdaiRepresented_definition( const SdaiGeneral_property_ptr&,
                                const SelectTypeDescriptor * =process_planning_schema::t_represented_definition );
    SdaiRepresented_definition( const SdaiProperty_definition_ptr&,
                                const SelectTypeDescriptor * =process_planning_schema::t_represented_definition );
    SdaiRepresented_definition( const SdaiProperty_definition_relationship_ptr&,
                                const SelectTypeDescriptor * =process_planning_schema::t_represented_definition );
    SdaiRepresented_definition( const SdaiShape_aspect_ptr&,
                                const SelectTypeDescriptor * =process_planning_schema::t_represented_definition );
    SdaiRepresented_definition( const SdaiShape_aspect_relationship_ptr&,
                                const SelectTypeDescriptor * =process_planning_schema::t_represented_definition );
    virtual ~SdaiRepresented_definition();

    //  part 2
    operator SdaiGeneral_property_ptr();
    operator SdaiProperty_definition_ptr();
    operator SdaiProperty_definition_relationship_ptr();
    operator SdaiShape_aspect_ptr();
    operator SdaiShape_aspect_relationship_ptr();

    //  part 3
        SdaiShape_aspect_ptr_c related_shape_aspect_() const;
        SdaiShape_aspect_ptr   related_shape_aspect_();
        void related_shape_aspect_( const SdaiShape_aspect_ptr x );

        SdaiShape_aspect_ptr_c relating_shape_aspect_() const;
        SdaiShape_aspect_ptr   relating_shape_aspect_();
        void relating_shape_aspect_( const SdaiShape_aspect_ptr x );

        Logical   product_definitional_() const;
        void product_definitional_( const Logical x );

        SdaiProduct_definition_shape_ptr_c of_shape_() const;
        SdaiProduct_definition_shape_ptr   of_shape_();
        void of_shape_( const SdaiProduct_definition_shape_ptr x );

        SdaiProperty_definition_ptr_c related_property_definition_() const;
        SdaiProperty_definition_ptr   related_property_definition_();
        void related_property_definition_( const SdaiProperty_definition_ptr x );

        SdaiProperty_definition_ptr_c relating_property_definition_() const;
        SdaiProperty_definition_ptr   relating_property_definition_();
        void relating_property_definition_( const SdaiProperty_definition_ptr x );

        SdaiCharacterized_definition_ptr_c definition_() const;
        SdaiCharacterized_definition_ptr   definition_();
        void definition_( const SdaiCharacterized_definition_ptr x );

  const SdaiText   description_() const;
        SdaiText   description_();
        void description_( const SdaiText x );

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

  const SdaiIdentifier   id_() const;
        SdaiIdentifier   id_();
        void id_( const SdaiIdentifier x );


    //  part 4
    SdaiRepresented_definition& operator =( const SdaiGeneral_property_ptr& );
    SdaiRepresented_definition& operator =( const SdaiProperty_definition_ptr& );
    SdaiRepresented_definition& operator =( const SdaiProperty_definition_relationship_ptr& );
    SdaiRepresented_definition& operator =( const SdaiShape_aspect_ptr& );
    SdaiRepresented_definition& operator =( const SdaiShape_aspect_relationship_ptr& );
    // not in SDAI
    SdaiRepresented_definition& ShallowCopy ( const SdaiRepresented_definition& );

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

    //  part 5
    Logical IsGeneral_property() const;
    Logical IsProperty_definition() const;
    Logical IsProperty_definition_relationship() const;
    Logical IsShape_aspect() const;
    Logical IsShape_aspect_relationship() const;

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

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

inline SDAI_Select * create_SdaiRepresented_definition () { return new SdaiRepresented_definition; }
typedef SdaiRepresented_definition * SdaiRepresented_definitionH;
typedef SdaiRepresented_definition_ptr SdaiRepresented_definition_var;


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

  public:
    SdaiRepresented_definition_agg( SelectTypeDescriptor * =process_planning_schema::t_represented_definition );
    ~SdaiRepresented_definition_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiRepresented_definition( sel_type )); }
};
inline STEPaggregate * create_SdaiRepresented_definition_agg () { return new SdaiRepresented_definition_agg; }
typedef SdaiRepresented_definition_agg_ptr SdaiRepresented_definition_agg_var;

/////  END SELECT TYPE represented_definition

void init_SdaiRepresented_definition(Registry& reg);

#endif
