New features
[anna.git] / include / anna / diameter / stack / Engine.hpp
index 165d779..ca3f758 100644 (file)
@@ -145,6 +145,17 @@ public:
   */
   Dictionary * createDictionary(int stackId, const std::string & xmlPathFile = "") throw(anna::RuntimeException);
 
+  /**
+  * Register a externally created Dictionary or a derived class from Dictionary
+  *
+  * @param stackId Stack identifier for provided dictionary. We recommend to use the Diameter 'Application-Id' unless
+  * the application is going to use dictionaries covering different applications (which is not very usual).
+  * @param dictionary Externally created dictionary
+  *
+  * @return Dictionary registered. When exception happen, dictionary can be accessed by #getDictionary
+  */
+  Dictionary * registerDictionary(int stackId, Dictionary *dictionary) throw(anna::RuntimeException);
+
   /**
   * Loads an XML dictionary document over the diameter stack identifiers (one or more stack id's).
   * Passing more than one stack id, synchronized loadings are performed, which could be useful when