2014-01-10 12:09:19 +02:00
|
|
|
#ifndef _library__memorywatch_list__hpp__included__
|
|
|
|
#define _library__memorywatch_list__hpp__included__
|
|
|
|
|
|
|
|
#include "memorywatch.hpp"
|
|
|
|
#include "mathexpr.hpp"
|
|
|
|
#include <string>
|
|
|
|
#include <functional>
|
|
|
|
|
2014-05-14 10:50:49 +03:00
|
|
|
namespace memorywatch
|
2014-01-10 12:09:19 +02:00
|
|
|
{
|
2014-05-14 10:50:49 +03:00
|
|
|
struct output_list : public item_printer
|
|
|
|
{
|
|
|
|
output_list();
|
|
|
|
~output_list();
|
2014-01-10 12:09:19 +02:00
|
|
|
void set_output(std::function<void(const std::string& n, const std::string& v)> _fn);
|
|
|
|
void show(const std::string& iname, const std::string& val);
|
|
|
|
void reset();
|
|
|
|
bool cond_enable;
|
2014-11-10 16:06:04 +02:00
|
|
|
GC::pointer<mathexpr::mathexpr> enabled;
|
2014-01-10 12:09:19 +02:00
|
|
|
//State variables.
|
|
|
|
std::function<void(const std::string& n, const std::string& v)> fn;
|
|
|
|
};
|
2014-05-14 10:50:49 +03:00
|
|
|
}
|
2014-01-10 12:09:19 +02:00
|
|
|
|
|
|
|
#endif
|