diff options
| author | 2020-11-03 18:43:19 +0000 | |
|---|---|---|
| committer | 2020-11-03 19:54:13 +0000 | |
| commit | be3b34fcea6512c8e5c4e170c50caaa7f14bb15a (patch) | |
| tree | bc6c6ea00ea80f271d4ed5b86d920758b767d367 /include | |
| parent | Convert ConnectClass from reference<> to std::shared_ptr<>. (diff) | |
| download | inspircd++-be3b34fcea6512c8e5c4e170c50caaa7f14bb15a.tar.gz inspircd++-be3b34fcea6512c8e5c4e170c50caaa7f14bb15a.tar.bz2 inspircd++-be3b34fcea6512c8e5c4e170c50caaa7f14bb15a.zip | |
Rename ConfigItems to ConfigTag::Items.
Diffstat (limited to 'include')
| -rw-r--r-- | include/configreader.h | 10 | ||||
| -rw-r--r-- | include/typedefs.h | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/include/configreader.h b/include/configreader.h index e1ade7ed9..4f93c2c7e 100644 --- a/include/configreader.h +++ b/include/configreader.h @@ -42,8 +42,12 @@ /** Structure representing a single \<tag> in config */ class CoreExport ConfigTag { +public: + /** A mapping of configuration keys to their assigned values. */ + typedef insp::flat_map<std::string, std::string, irc::insensitive_swo> Items; + private: - ConfigItems items; + Items items; public: const std::string tag; @@ -100,10 +104,10 @@ class CoreExport ConfigTag std::string getTagLocation() const; - inline const ConfigItems& getItems() const { return items; } + inline const Items& GetItems() const { return items; } /** Create a new ConfigTag, giving access to the private ConfigItems item list */ - static std::shared_ptr<ConfigTag> create(const std::string& Tag, const std::string& file, int line, ConfigItems*& Items); + static std::shared_ptr<ConfigTag> create(const std::string& Tag, const std::string& file, int line, Items*& Items); private: ConfigTag(const std::string& Tag, const std::string& file, int line); }; diff --git a/include/typedefs.h b/include/typedefs.h index 518bb4d63..90d2d93db 100644 --- a/include/typedefs.h +++ b/include/typedefs.h @@ -95,10 +95,6 @@ typedef std::vector<Membership*> IncludeChanList; */ typedef std::vector<std::string> file_cache; -/** A mapping of configuration keys to their assigned values. - */ -typedef insp::flat_map<std::string, std::string, irc::insensitive_swo> ConfigItems; - /** The entire configuration */ typedef std::multimap<std::string, std::shared_ptr<ConfigTag>, irc::insensitive_swo> ConfigDataHash; |
