This change moves prune-trace's --variants-exclude / --benchmarks-exclude capabilities to Database::get_variants() to make it available to all users. Change-Id: Icbc6bb1a3ae7c846d2de40b881f47a9cc1ed7bbf
37 lines
793 B
C++
37 lines
793 B
C++
#ifndef __PRUNER_H__
|
|
#define __PRUNER_H__
|
|
|
|
#include <vector>
|
|
#include <string>
|
|
#include "util/Database.hpp"
|
|
|
|
class Pruner {
|
|
protected:
|
|
int m_method_id;
|
|
fail::Database *db;
|
|
std::vector<fail::Database::Variant> m_variants;
|
|
std::string m_variants_sql;
|
|
|
|
public:
|
|
bool init(fail::Database *db,
|
|
const std::vector<std::string>& variants,
|
|
const std::vector<std::string>& variants_exclude,
|
|
const std::vector<std::string>& benchmarks,
|
|
const std::vector<std::string>& benchmarks_exclude);
|
|
|
|
/**
|
|
* Callback function that can be used to add command line options
|
|
* to the cmd interface
|
|
*/
|
|
virtual bool commandline_init() { return true; }
|
|
|
|
virtual std::string method_name() = 0;
|
|
|
|
virtual bool create_database();
|
|
virtual bool clear_database();
|
|
|
|
virtual bool prune_all() = 0;
|
|
};
|
|
|
|
#endif
|