X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=include%2Fanna%2Fdiameter%2Fcodec%2FEngineManager.hpp;fp=include%2Fanna%2Fdiameter%2Fcodec%2FEngineManager.hpp;h=e48788537da8f11f2c6c185ca96171673cc56b46;hp=e498e6961007c6e62d4b674326a7a2cb26d8ef00;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/include/anna/diameter/codec/EngineManager.hpp b/include/anna/diameter/codec/EngineManager.hpp index e498e69..e487885 100644 --- a/include/anna/diameter/codec/EngineManager.hpp +++ b/include/anna/diameter/codec/EngineManager.hpp @@ -60,17 +60,17 @@ public: /** * First element iterator */ - appid_codec_engines_it begin() const throw() { return a_appid_codec_engines.begin(); } + appid_codec_engines_it begin() const { return a_appid_codec_engines.begin(); } /** * Last element iterator */ - appid_codec_engines_it end() const throw() { return a_appid_codec_engines.end(); } + appid_codec_engines_it end() const { return a_appid_codec_engines.end(); } /** * Number of registered engines */ - int size() const throw() { return a_appid_codec_engines.size(); } + int size() const { return a_appid_codec_engines.size(); } /** * Registers a new codec engine (externally allocated) associated to an application id. @@ -79,7 +79,7 @@ public: * @param appid Application-Id * @param engine Associated codec engine */ - void registerCodecEngine(const ApplicationId &appid, Engine* engine) throw(); + void registerCodecEngine(const ApplicationId &appid, Engine* engine) ; /** * Get the associated codec engine for a provided Application-Id. @@ -88,7 +88,7 @@ public: * * @return Found codec engine, NULL if not found */ - Engine *getCodecEngine(const ApplicationId &appid) const throw(); + Engine *getCodecEngine(const ApplicationId &appid) const ; /** * If only one codec engine is registered (mono-stack application), it will be returned @@ -98,7 +98,7 @@ public: * * @return Unique codec engine, NULL if not unique (empty manager or more than one) */ - Engine *getMonoStackCodecEngine() const throw() { + Engine *getMonoStackCodecEngine() const { return ((size() != 1) ? NULL : begin()->second); } @@ -115,7 +115,7 @@ public: * @param enable Activates/deactivates the codec engine selection from the Application-Id value. True by default * and applicable when this manager store is not empty. */ - void selectFromApplicationId (bool enable) throw() { a_autoSelectFromApplicationId = enable; } + void selectFromApplicationId (bool enable) { a_autoSelectFromApplicationId = enable; } /** Gets the currently configured behaviour regarding codec engine selection. @@ -123,14 +123,14 @@ public: @return True if selection is done with the Application-Id (default behaviour). False to disable (the manager could be used for some other things which could be also interesting). */ - bool selectFromApplicationId (void) throw() { return a_autoSelectFromApplicationId; } + bool selectFromApplicationId (void) { return a_autoSelectFromApplicationId; } /** Class XML representation. \param parent XML node over which we will put instance information. \return XML documentcon with class content. */ - virtual anna::xml::Node* asXML(anna::xml::Node* parent) const throw(); + virtual anna::xml::Node* asXML(anna::xml::Node* parent) const ; friend class anna::Singleton ;