New feature to allow to register components with different names for same class:...
[anna.git] / source / diameter / codec / tme / Message.cpp
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 // Local
10 #include <anna/diameter/codec/tme/Message.hpp>
11 #include <anna/diameter/codec/tme/Engine.hpp>
12 #include <anna/core/functions.hpp>
13
14
15 using namespace anna::diameter::codec::tme;
16
17
18 //------------------------------------------------------------------------------
19 //--------------------------------------------------------- Message::getEngine()
20 //------------------------------------------------------------------------------
21 anna::diameter::codec::Engine * Message::getEngine() const throw(anna::RuntimeException) {
22   if(!a_engine)
23     throw anna::RuntimeException("Invalid codec engine reference (NULL)", ANNA_FILE_LOCATION);
24
25   return a_engine;
26 }
27
28
29 //------------------------------------------------------------------------------
30 //-------------------------------------------------------- Message::initialize()
31 //------------------------------------------------------------------------------
32 void Message::initialize() throw() {
33   // Base class method:
34   anna::diameter::codec::Message::initialize();
35 }
36
37