performancedb: Maintenance
default ctor, dtor
This commit is contained in:
parent
f5acb22929
commit
1998ffce84
2 changed files with 3 additions and 16 deletions
|
@ -18,15 +18,6 @@
|
||||||
|
|
||||||
using std::string;
|
using std::string;
|
||||||
|
|
||||||
PerformanceDB::PerformanceDB()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
PerformanceDB::~PerformanceDB()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void PerformanceDB::init()
|
void PerformanceDB::init()
|
||||||
{
|
{
|
||||||
SGPath dbpath( globals->get_fg_root() );
|
SGPath dbpath( globals->get_fg_root() );
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
#ifndef PERFORMANCEDB_HXX
|
#pragma once
|
||||||
#define PERFORMANCEDB_HXX
|
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <map>
|
#include <map>
|
||||||
|
@ -22,8 +21,8 @@ class SGPath;
|
||||||
class PerformanceDB : public SGSubsystem
|
class PerformanceDB : public SGSubsystem
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
PerformanceDB();
|
PerformanceDB() = default;
|
||||||
virtual ~PerformanceDB();
|
virtual ~PerformanceDB() = default;
|
||||||
|
|
||||||
// Subsystem API.
|
// Subsystem API.
|
||||||
void init() override;
|
void init() override;
|
||||||
|
@ -48,7 +47,6 @@ private:
|
||||||
|
|
||||||
void registerPerformanceData(const std::string& id, PerformanceData* data);
|
void registerPerformanceData(const std::string& id, PerformanceData* data);
|
||||||
|
|
||||||
|
|
||||||
typedef std::map<std::string, PerformanceData*> PerformanceDataDict;
|
typedef std::map<std::string, PerformanceData*> PerformanceDataDict;
|
||||||
PerformanceDataDict _db;
|
PerformanceDataDict _db;
|
||||||
|
|
||||||
|
@ -60,5 +58,3 @@ private:
|
||||||
/// partial matches when merging - the first matching alias is used.
|
/// partial matches when merging - the first matching alias is used.
|
||||||
std::vector<StringPair> _aliases;
|
std::vector<StringPair> _aliases;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
Loading…
Reference in a new issue