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