ChartID.hpp

00001 
00002 //
00003 // $Id: ChartID.hpp,v 1.3 2007/03/19 20:23:15 werner Exp $
00004 //
00005 // $Log: ChartID.hpp,v $
00006 // Revision 1.3  2007/03/19 20:23:15  werner
00007 // bugfix in grid::makeChart() to reuse an existing chart, which consequently
00008 // results in lots of other code becoming functional immediatly
00009 //
00010 // Revision 1.2  2007/01/31 23:00:51  werner
00011 // fixed hdr
00012 //
00013 // Revision 1.1  2007/01/31 22:59:13  werner
00014 // chartID outsourced
00015 //
00017 #ifndef __FIBER_GRID_CHARTID_HPP
00018 #define __FIBER_GRID_CHARTID_HPP "Created 14.01.2007 15:15:17 by werner"
00019 
00020 #include "GridAPI.h"
00021 #include <memcore/RefPtr.hpp>
00022 #include <set>
00023 #include <string>
00024 
00025 namespace Fiber
00026 {
00027         using namespace MemCore;
00028         using std::set;
00029         using std::string;
00030 
00031 
00043 class   GRID_API ChartID : public MemCore::ReferenceBase<ChartID>
00044 {
00045 public:
00046         string  name;
00047 
00048 private:
00049         ChartID(const string&n);
00050 
00051         friend class ChartIDList;
00052 public:
00053 
00054         string Name() const
00055         {
00056                 return name;
00057         }
00058 
00061 static  const string&Default(); 
00062 /*
00063 static  const string&TPolar2();
00064 */
00065 };
00066 
00069 class   GRID_API ChartIDList : public MemCore::ReferenceBase<ChartIDList>
00070 {
00071         typedef set< RefPtr<ChartID> > IDList_t;
00072         IDList_t IDList;
00073 public:
00074         ChartIDList();
00075 
00077         RefPtr<ChartID> operator()(const string&name) const;
00078 
00080         RefPtr<ChartID> operator[](const string&name);
00081 };
00082 
00083 } /* namespace Fiber */ 
00084 
00085 #endif /* __FIBER_GRID_CHARTID_HPP */
00086 
00087