28getNonConstLoggerValues() {
30 return (logger_values);
40getNonConstDuplicates() {
53 global_logger_values_(getNonConstLoggerValues()),
54 global_logger_duplicates_(getNonConstDuplicates()) {
55 global_logger_values_->push_back(values);
60 LoggerValuesList::iterator my_messages = std::find(global_logger_values_->begin(),
61 global_logger_values_->end(),
63 bool pending = (my_messages != global_logger_values_->end());
67 global_logger_values_->erase(my_messages);
76 LoggerDuplicatesList::iterator dup =
77 std::find(global_logger_duplicates_->begin(),
78 global_logger_duplicates_->end(),
80 if (dup != global_logger_duplicates_->end()) {
81 global_logger_duplicates_->erase(dup);
84 global_dictionary_->erase(values_[i], values_[i + 1]);
95 return (getNonConstLoggerValues()->size());
106 for (
auto const& values : *logger_values) {
107 std::vector<std::string> repeats = global->load(values);
111 if (!ignore_duplicates && !repeats.empty()) {
113 duplicates->insert(duplicates->end(), repeats.begin(), repeats.end());
120 logger_values->clear();
124const std::list<std::string>&
126 return (*getNonConstDuplicates());
132 getNonConstDuplicates()->clear();
static const MessageDictionaryPtr & globalDictionary()
Return Global Dictionary.
~MessageInitializer()
Destructor.
static void loadDictionary(bool ignore_duplicates=false)
Run-Time Initialization.
static size_t getPendingCount()
Obtain pending load count.
MessageInitializer(const char *values[])
Constructor.
static const std::list< std::string > & getDuplicates()
Return Duplicates.
static void clearDuplicates()
Clear the static duplicates list.
std::list< const char ** > LoggerValuesList
List of pointers to the messages.
boost::shared_ptr< LoggerValuesList > LoggerValuesListPtr
Shared pointer to the list of pointers to the messages.
boost::shared_ptr< LoggerDuplicatesList > LoggerDuplicatesListPtr
Shared pointer to the list of duplicated messages.
boost::shared_ptr< MessageDictionary > MessageDictionaryPtr
Shared pointer to the MessageDictionary.
std::list< std::string > LoggerDuplicatesList
List of duplicated messages.
Defines the logger used by the top-level component of kea-lfc.