The skin files can read other files with @include statement.

This commit is contained in:
Kimmo Pekkola
2009-09-18 15:30:51 +00:00
parent b9bb71a669
commit e84e7d534d
5 changed files with 108 additions and 88 deletions

View File

@ -49,16 +49,17 @@ public:
std::vector<Gdiplus::REAL> ReadFloats(LPCTSTR section, LPCTSTR key);
std::wstring& GetFilename() { return m_Filename; }
std::vector<std::wstring> GetSections();
private:
void ReadVariables();
void ReplaceVariables(std::wstring& result);
Gdiplus::Color ParseColor(LPCTSTR string);
std::vector<std::wstring> Tokenize(const std::wstring& str, const std::wstring delimiters);
void ReadIniFile(const std::wstring& strFileName);
void ReadIniFile(const std::wstring& strFileName, int depth = 0);
void SetValue(const std::wstring& strSection, const std::wstring& strKey, const std::wstring& strValue);
const std::wstring& GetValue(const std::wstring& strSection, const std::wstring& strKey, const std::wstring& strDefault);
std::vector<std::wstring> GetSections();
std::vector<std::wstring> GetKeys(const std::wstring& strSection);
std::map<std::wstring, std::wstring> m_Variables;