//bool header_exists(const char *description) const; // configuration //------------------------------------------------- // add_entry - adds an entry //------------------------------------------------- protected void add_entry(entry entry, string after_header = null) { // update the entry map foreach (string name in entry.names()) { // append the entry add_to_entry_map(name, entry); } // and add the entry to the vector m_entries.emplace_back(entry); }
//bool header_exists(const char *description) const; // configuration //------------------------------------------------- // add_entry - adds an entry //------------------------------------------------- protected void add_entry(entry entry, string after_header = null) { // update the entry map foreach (string name in entry.names()) { // append the entry add_to_entry_map(name, entry); // for booleans, add the "-noXYZ" option as well if (entry.type() == option_type.BOOLEAN) { add_to_entry_map("no" + name, entry); } } // and add the entry to the vector m_entries.emplace_back(entry); }