Revert "Remove mysql and oracle resources for anna-ericsson project"
[anna.git] / example / diameter / launcher / MyDiameterEntity.hpp
1 // ANNA - Anna is Not Nothingness Anymore                                                         //
2 //                                                                                                //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo                         //
4 //                                                                                                //
5 // See project site at http://redmine.teslayout.com/projects/anna-suite                           //
6 // See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
7
8
9 #ifndef example_diameter_launcher_MyDiameterEntity_hpp
10 #define example_diameter_launcher_MyDiameterEntity_hpp
11
12 // Project
13 #include <anna/diameter.comm/Entity.hpp>
14 #include <anna/diameter/codec/MessagesDeque.hpp>
15
16
17 namespace anna {
18   namespace diameter {
19     namespace codec {
20       class Engine;
21     }
22   }
23 }
24
25 class MyDiameterEntity : public anna::diameter::comm::Entity {
26
27   void eventRequestRetransmission(const anna::diameter::comm::ClientSession *, anna::diameter::comm::Message*) throw();
28   void eventResponse(const anna::diameter::comm::Response&) throw(anna::RuntimeException);
29   void eventRequest(anna::diameter::comm::ClientSession *, const anna::DataBlock&) throw(anna::RuntimeException);
30   void eventUnknownResponse(anna::diameter::comm::ClientSession *, const anna::DataBlock&) throw(anna::RuntimeException);
31   void eventDPA(anna::diameter::comm::ClientSession *, const anna::DataBlock&) throw(anna::RuntimeException);
32
33 public:
34
35   MyDiameterEntity() {;}
36   virtual ~MyDiameterEntity() {;}
37
38   anna::diameter::codec::MessagesDeque a_reactingAnswers;
39   anna::diameter::codec::MessagesDeque *getReactingAnswers() throw() { return (anna::diameter::codec::MessagesDeque*)&a_reactingAnswers; }
40 };
41
42 #endif