Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (18 sloc) 621 Bytes
#include "settings.h"
#include "internal/average_counter_impl.h"
#ifdef HAVE_DMALLOC_H
#include <dmalloc.h>
#endif
namespace xscript
{
class AverageCounterFactoryImpl : public AverageCounterFactory {
public:
virtual std::auto_ptr<AverageCounter> createCounter(const std::string& name, bool want_real);
};
std::auto_ptr<AverageCounter>
AverageCounterFactoryImpl::createCounter(const std::string &name, bool want_real) {
(void)want_real;
return std::auto_ptr<AverageCounter>(new AverageCounterImpl(name));
}
static ComponentImplRegisterer<AverageCounterFactory> reg_(new AverageCounterFactoryImpl());
}