#ifndef  TYPE_SDAIIFCDOCUMENTSELECT_H
#define  TYPE_SDAIIFCDOCUMENTSELECT_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 SdaiIfcdocumentselect
class SC_SCHEMA_EXPORT SdaiIfcdocumentselect  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   IFCDOCUMENTREFERENCE    --  sdaiINSTANCE
    //   IFCDOCUMENTINFORMATION    --  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
    SdaiIfcdocumentselect( const SelectTypeDescriptor * =ifc2x3::t_ifcdocumentselect );
    //  part 1
    SdaiIfcdocumentselect( const SdaiIfcdocumentreference_ptr&,
                           const SelectTypeDescriptor * =ifc2x3::t_ifcdocumentselect );
    SdaiIfcdocumentselect( const SdaiIfcdocumentinformation_ptr&,
                           const SelectTypeDescriptor * =ifc2x3::t_ifcdocumentselect );
    virtual ~SdaiIfcdocumentselect();

    //  part 2
    operator SdaiIfcdocumentreference_ptr();
    operator SdaiIfcdocumentinformation_ptr();

    //  part 3
        EntityAggregate_ptr_c ispointer_() const;
        EntityAggregate_ptr   ispointer_();
        void ispointer_( const EntityAggregate_ptr x );

        EntityAggregate_ptr_c ispointedto_() const;
        EntityAggregate_ptr   ispointedto_();
        void ispointedto_( const EntityAggregate_ptr x );

  const SdaiIfcdocumentstatusenum_var   status_() const;
        SdaiIfcdocumentstatusenum_var   status_();
        void status_( const SdaiIfcdocumentstatusenum_var x );

  const SdaiIfcdocumentconfidentialityenum_var   confidentiality_() const;
        SdaiIfcdocumentconfidentialityenum_var   confidentiality_();
        void confidentiality_( const SdaiIfcdocumentconfidentialityenum_var x );

        SdaiIfccalendardate_ptr_c validuntil_() const;
        SdaiIfccalendardate_ptr   validuntil_();
        void validuntil_( const SdaiIfccalendardate_ptr x );

        SdaiIfccalendardate_ptr_c validfrom_() const;
        SdaiIfccalendardate_ptr   validfrom_();
        void validfrom_( const SdaiIfccalendardate_ptr x );

        SdaiIfcdocumentelectronicformat_ptr_c electronicformat_() const;
        SdaiIfcdocumentelectronicformat_ptr   electronicformat_();
        void electronicformat_( const SdaiIfcdocumentelectronicformat_ptr x );

        SdaiIfcdateandtime_ptr_c lastrevisiontime_() const;
        SdaiIfcdateandtime_ptr   lastrevisiontime_();
        void lastrevisiontime_( const SdaiIfcdateandtime_ptr x );

        SdaiIfcdateandtime_ptr_c creationtime_() const;
        SdaiIfcdateandtime_ptr   creationtime_();
        void creationtime_( const SdaiIfcdateandtime_ptr x );

        SdaiIfcactorselect_agg_ptr_c editors_() const;
        SdaiIfcactorselect_agg_ptr   editors_();
        void editors_( const SdaiIfcactorselect_agg_ptr x );

        SdaiIfcactorselect_ptr_c documentowner_() const;
        SdaiIfcactorselect_ptr   documentowner_();
        void documentowner_( const SdaiIfcactorselect_ptr x );

  const SdaiIfclabel   revision_() const;
        SdaiIfclabel   revision_();
        void revision_( const SdaiIfclabel x );

  const SdaiIfctext   scope_() const;
        SdaiIfctext   scope_();
        void scope_( const SdaiIfctext x );

  const SdaiIfctext   intendeduse_() const;
        SdaiIfctext   intendeduse_();
        void intendeduse_( const SdaiIfctext x );

  const SdaiIfctext   purpose_() const;
        SdaiIfctext   purpose_();
        void purpose_( const SdaiIfctext x );

        EntityAggregate_ptr_c documentreferences_() const;
        EntityAggregate_ptr   documentreferences_();
        void documentreferences_( const EntityAggregate_ptr x );

  const SdaiIfctext   description_() const;
        SdaiIfctext   description_();
        void description_( const SdaiIfctext x );

  const SdaiIfcidentifier   documentid_() const;
        SdaiIfcidentifier   documentid_();
        void documentid_( const SdaiIfcidentifier x );

        EntityAggregate_ptr_c referencetodocument_() const;
        EntityAggregate_ptr   referencetodocument_();
        void referencetodocument_( const EntityAggregate_ptr x );

  const SdaiIfclabel   name_() const;
        SdaiIfclabel   name_();
        void name_( const SdaiIfclabel x );

  const SdaiIfcidentifier   itemreference_() const;
        SdaiIfcidentifier   itemreference_();
        void itemreference_( const SdaiIfcidentifier x );

  const SdaiIfclabel   location_() const;
        SdaiIfclabel   location_();
        void location_( const SdaiIfclabel x );


    //  part 4
    SdaiIfcdocumentselect& operator =( const SdaiIfcdocumentreference_ptr& );
    SdaiIfcdocumentselect& operator =( const SdaiIfcdocumentinformation_ptr& );
    // not in SDAI
    SdaiIfcdocumentselect& ShallowCopy ( const SdaiIfcdocumentselect& );

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

    //  part 5
    Logical IsIfcdocumentreference() const;
    Logical IsIfcdocumentinformation() const;

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

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

inline SDAI_Select * create_SdaiIfcdocumentselect () { return new SdaiIfcdocumentselect; }
typedef SdaiIfcdocumentselect * SdaiIfcdocumentselectH;
typedef SdaiIfcdocumentselect_ptr SdaiIfcdocumentselect_var;


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

  public:
    SdaiIfcdocumentselect_agg( SelectTypeDescriptor * =ifc2x3::t_ifcdocumentselect );
    ~SdaiIfcdocumentselect_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiIfcdocumentselect( sel_type )); }
};
inline STEPaggregate * create_SdaiIfcdocumentselect_agg () { return new SdaiIfcdocumentselect_agg; }
typedef SdaiIfcdocumentselect_agg_ptr SdaiIfcdocumentselect_agg_var;

/////  END SELECT TYPE ifcdocumentselect

void init_SdaiIfcdocumentselect(Registry& reg);

#endif
