New feature to allow to register components with different names for same class:...
[anna.git] / example / diameter / launcher / ProgrammedAnswers.hpp
index 00b9d4d..a7cd897 100644 (file)
@@ -18,6 +18,7 @@ namespace anna {
   namespace diameter {
     namespace codec {
       class Message;
+      class Engine;
     }
   }
 }
@@ -34,11 +35,13 @@ typedef std::map < int /* message code */, codec_messages_deque* >::const_iterat
 
   reacting_answers_container a_deques;
   bool a_rotate;
+  anna::diameter::codec::Engine *a_codecEngine;
 
   public:
     ProgrammedAnswers() { a_rotate = false; }
     ~ProgrammedAnswers() { clear(); }
 
+    void setCodecEngine(anna::diameter::codec::Engine *codecEngine) throw() { a_codecEngine = codecEngine; }
     bool rotate() const throw() { return a_rotate; }
     void rotate(bool r) throw() { a_rotate = r; }