mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Move IniFile section chunk handling to IniFile::Section
This commit is contained in:
@ -66,18 +66,22 @@ public:
|
||||
bool Get(const std::string& key, double* value, double defaultValue = 0.0) const;
|
||||
bool Get(const std::string& key, std::vector<std::string>* values) const;
|
||||
|
||||
void SetLines(const std::vector<std::string>& lines);
|
||||
bool GetLines(std::vector<std::string>* lines, const bool remove_comments = true) const;
|
||||
|
||||
bool operator<(const Section& other) const { return name < other.name; }
|
||||
using SectionMap = std::map<std::string, std::string, CaseInsensitiveStringCompare>;
|
||||
|
||||
const std::string& GetName() const { return name; }
|
||||
const SectionMap& GetValues() const { return values; }
|
||||
bool HasLines() const { return !m_lines.empty(); }
|
||||
protected:
|
||||
std::string name;
|
||||
|
||||
std::vector<std::string> keys_order;
|
||||
SectionMap values;
|
||||
|
||||
std::vector<std::string> lines;
|
||||
std::vector<std::string> m_lines;
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user