#ifndef  TYPE_SDAINODE_OUTPUT_REFERENCE_H
#define  TYPE_SDAINODE_OUTPUT_REFERENCE_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 SdaiNode_output_reference
class SC_SCHEMA_EXPORT SdaiNode_output_reference  :  public SDAI_Select {
  protected:
    //  types in SELECT 
    //   NODE_REPRESENTATION    --  sdaiINSTANCE
    //   NODE_GROUP    --  sdaiINSTANCE
    //   SUBSTRUCTURE_NODE_REFERENCE    --  sdaiINSTANCE
    //   ANALYSIS_ITEM_WITHIN_REPRESENTATION    --  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
    SdaiNode_output_reference( const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_node_output_reference );
    //  part 1
    SdaiNode_output_reference( const SdaiNode_representation_ptr&,
                               const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_node_output_reference );
    SdaiNode_output_reference( const SdaiNode_group_ptr&,
                               const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_node_output_reference );
    SdaiNode_output_reference( const SdaiSubstructure_node_reference_ptr&,
                               const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_node_output_reference );
    SdaiNode_output_reference( const SdaiAnalysis_item_within_representation_ptr&,
                               const SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_node_output_reference );
    virtual ~SdaiNode_output_reference();

    //  part 2
    operator SdaiNode_representation_ptr();
    operator SdaiNode_group_ptr();
    operator SdaiSubstructure_node_reference_ptr();
    operator SdaiAnalysis_item_within_representation_ptr();

    //  part 3
        SdaiRepresentation_ptr_c rep_() const;
        SdaiRepresentation_ptr   rep_();
        void rep_( const SdaiRepresentation_ptr x );

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

        SdaiNode_representation_ptr_c node_ref_() const;
        SdaiNode_representation_ptr   node_ref_();
        void node_ref_( const SdaiNode_representation_ptr x );

        SdaiSubstructure_element_representation_ptr_c substructure_element_ref_() const;
        SdaiSubstructure_element_representation_ptr   substructure_element_ref_();
        void substructure_element_ref_( const SdaiSubstructure_element_representation_ptr x );

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

        SdaiFea_model_ptr_c model_ref_() const;
        SdaiFea_model_ptr   model_ref_();
        void model_ref_( const SdaiFea_model_ptr x );

        SdaiRepresentation_context_ptr_c context_of_items_() const;
        SdaiRepresentation_context_ptr   context_of_items_();
        void context_of_items_( const SdaiRepresentation_context_ptr x );

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

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


    //  part 4
    SdaiNode_output_reference& operator =( const SdaiNode_representation_ptr& );
    SdaiNode_output_reference& operator =( const SdaiNode_group_ptr& );
    SdaiNode_output_reference& operator =( const SdaiSubstructure_node_reference_ptr& );
    SdaiNode_output_reference& operator =( const SdaiAnalysis_item_within_representation_ptr& );
    // not in SDAI
    SdaiNode_output_reference& ShallowCopy ( const SdaiNode_output_reference& );

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

    //  part 5
    Logical IsNode_representation() const;
    Logical IsNode_group() const;
    Logical IsSubstructure_node_reference() const;
    Logical IsAnalysis_item_within_representation() const;

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

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

inline SDAI_Select * create_SdaiNode_output_reference () { return new SdaiNode_output_reference; }
typedef SdaiNode_output_reference * SdaiNode_output_referenceH;
typedef SdaiNode_output_reference_ptr SdaiNode_output_reference_var;


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

  public:
    SdaiNode_output_reference_agg( SelectTypeDescriptor * =ap209_multidisciplinary_analysis_and_design_mim_lf::t_node_output_reference );
    ~SdaiNode_output_reference_agg();
    virtual SingleLinkNode * NewNode()
     { return new SelectNode (new SdaiNode_output_reference( sel_type )); }
};
inline STEPaggregate * create_SdaiNode_output_reference_agg () { return new SdaiNode_output_reference_agg; }
typedef SdaiNode_output_reference_agg_ptr SdaiNode_output_reference_agg_var;

/////  END SELECT TYPE node_output_reference

void init_SdaiNode_output_reference(Registry& reg);

#endif
