public:
- typedef std::map<int, Dictionary*> stack_container;
+ typedef std::map<unsigned int, Dictionary*> stack_container;
typedef stack_container::const_iterator const_stack_iterator;
typedef stack_container::iterator stack_iterator;
* @param stackId Stack identifier.
* @return Dictionary reference, NULL if no stack found
*/
- const Dictionary * getDictionary(int stackId) const throw();
+ const Dictionary * getDictionary(unsigned int stackId) const throw();
/** Beginning stack iterator */
const_stack_iterator stack_begin() const throw() { return a_stacks.begin(); }
/**
* Class string representation
*
+ * @param all Complete engine information versus only stacks list with its ids and dictionary names
+ *
* @return String with class content
*/
- std::string asString(void) const throw();
+ std::string asString(bool all = true) const throw();
// set
*
* @return Dictionary registered. When exception happen, dictionary can be accessed by #getDictionary
*/
- Dictionary * createDictionary(int stackId, const std::string & xmlPathFile = "") throw(anna::RuntimeException);
+ Dictionary * createDictionary(unsigned int stackId, const std::string & xmlPathFile = "") throw(anna::RuntimeException);
/**
* Register a externally created Dictionary or a derived class from Dictionary
*
* @return Dictionary registered. When exception happen, dictionary can be accessed by #getDictionary
*/
- Dictionary * registerDictionary(int stackId, Dictionary *dictionary) throw(anna::RuntimeException);
+ Dictionary * registerDictionary(unsigned int stackId, Dictionary *dictionary) throw(anna::RuntimeException);
/**
* Loads an XML dictionary document over the diameter stack identifiers (one or more stack id's).
* @param stacks Stacks identifiers over which the dictionary will be load.
* @param xmlPathFile Path file to the xml document which represents the diameter dictionary.
*/
- void loadDictionary(const std::vector<int> & stacks, const std::string & xmlPathFile) throw(anna::RuntimeException);
+ void loadDictionary(const std::vector<unsigned int> & stacks, const std::string & xmlPathFile) throw(anna::RuntimeException);
/**
* Loads an XML dictionary document over all the diameter engine registered stacks. When more than one stack id is
*
* @param stackId Stack identifier for created dictionary
*/
- void removeStack(int stackId) throw();
+ void removeStack(unsigned int stackId) throw();
private: