2007-06-28 07:47:20 +00:00
|
|
|
|
#ifndef PERFORMANCEDB_HXX
|
|
|
|
|
#define PERFORMANCEDB_HXX
|
|
|
|
|
|
|
|
|
|
#include <string>
|
2009-05-05 10:36:38 +00:00
|
|
|
|
#include <vector>
|
2007-06-28 07:47:20 +00:00
|
|
|
|
#include <map>
|
|
|
|
|
|
|
|
|
|
#include "performancedata.hxx"
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Registry for performance data.
|
|
|
|
|
*
|
|
|
|
|
* Allows to store performance data for later reuse/retrieval. Just
|
|
|
|
|
* a simple map for now.
|
|
|
|
|
*
|
2009-05-05 10:36:38 +00:00
|
|
|
|
* @author Thomas F<EFBFBD>rster <t.foerster@biologie.hu-berlin.de>
|
2007-06-28 07:47:20 +00:00
|
|
|
|
*/
|
|
|
|
|
//TODO provide std::map interface?
|
|
|
|
|
class PerformanceDB
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
PerformanceDB();
|
|
|
|
|
~PerformanceDB();
|
|
|
|
|
|
|
|
|
|
void registerPerformanceData(const std::string& id, PerformanceData* data);
|
|
|
|
|
void registerPerformanceData(const std::string& id, const std::string& filename);
|
|
|
|
|
|
|
|
|
|
PerformanceData* getDataFor(const std::string& id);
|
2009-05-05 10:36:38 +00:00
|
|
|
|
void load(SGPath path);
|
2007-06-28 07:47:20 +00:00
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
std::map<std::string, PerformanceData*> _db;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|