git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@43495
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
#include <ptlib.h>
#include <h323.h>
#include <h245.h>
+#include "ast_h323.h"
#include "caps_h323.h"
#define DEFINE_G711_CAPABILITY(cls, code, capName) \
class MyPFactory: public PFactory<_Abstract_T, _Key_T>
{
public:
- template <class _Contrete_T> class Worker: public PFactory<_Abstract_T, _Key_T>::WorkerBase
+ template <class _Concrete_T> class Worker: public PFactory<_Abstract_T, _Key_T>::WorkerBase
{
public:
Worker(const _Key_T &_key, bool singleton = false)
{
PFactory<_Abstract_T, _Key_T>::Unregister(key);
}
+ protected:
+ virtual _Abstract_T *Create(const _Key_T &) const { return new _Concrete_T; }
private:
PString key;