-/* $Id: filter_template.cpp,v 1.1 2005-11-14 23:35:22 adam Exp $
+/* $Id: filter_template.cpp,v 1.2 2005-12-11 17:20:18 adam Exp $
Copyright (c) 2005, Index Data.
%LICENSE%
}
}
-using namespace yp2;
-
yf::Template::Template() : m_p(new Rep)
{
+ m_p->dummy = 1;
}
yf::Template::~Template()
-{
+{ // must have a destructor because of boost::scoped_ptr
}
void yf::Template::process(Package &package) const
-/* $Id: filter_template.hpp,v 1.1 2005-11-14 23:35:22 adam Exp $
+/* $Id: filter_template.hpp,v 1.2 2005-12-11 17:20:18 adam Exp $
Copyright (c) 2005, Index Data.
%LICENSE%
*/
+// Filter that does nothing. Use as template for new filters
#ifndef FILTER_TEMPLATE_HPP
#define FILTER_TEMPLATE_HPP
namespace filter {
class Template : public Base {
class Rep;
+ boost::scoped_ptr<Rep> m_p;
public:
- ~Template();
Template();
+ ~Template();
void process(yp2::Package & package) const;
- private:
- boost::scoped_ptr<Rep> m_p;
};
}
}