#include "Graph.h"

#include "Create.h"

//#include "Gnuplot_graph.h"//fix remove

namespace MM
{
Array_of_own <Graph>     Graph::global_graph_collection;

Graph & Graph::
get (Text const & /*name*/)
{
    //for (int i=0;  i<global_graph_collection.size();  ++i)
    //{
    //    if (global_graph_collection[i].name() == name)
    //        return global_graph_collection[i];
    //}
    //Gnuplot_graph * new_obj = new Gnuplot_graph (name);
    //global_graph_collection.adopt (new_obj);
    //return *new_obj;

    //fix
    return nil<Graph>();
}

Text const & Graph::
name () const
{
    return name_;
}

}//MM
