New feature to allow to register components with different names for same class:...
[anna.git] / include / anna / diameter / codec / tme / Engine.hpp
index f726c39..92fbc31 100644 (file)
@@ -45,9 +45,11 @@ class Engine : public EngineImpl {
 
 public:
 
-  static const char* getClassName() throw() { return "anna::diameter::codec::tme::Engine"; }
-
-  Engine() : EngineImpl(getClassName()) {;}
+  /**
+     Constructor
+     @param className Logical name for the class.
+  */
+  Engine(const char *className = "anna::diameter::codec::tme::Engine") : EngineImpl(className) {;}
 
   void releaseAvp(anna::diameter::codec::Avp* avp) throw() {
     if(avp == NULL) return;