Files
envi-code/SourceCode/Code2026/inc/IniTools.h
T
2026-09-28 15:28:50 +08:00

23 lines
660 B
C++

#pragma once
#include <map>
#include <vector>
#include <sstream>
#include <fstream>
#include <algorithm>
#ifdef EARTHWORM_EXPORT
#define DLLIMPEXP __declspec(dllexport)
#else
#define DLLIMPEXP __declspec(dllimport)
#endif
class DLLIMPEXP IniTools
{
public:
static bool getSections(LPCTSTR szPath, std::vector<CString> &sections);
static bool getSectionContent(LPCTSTR szPath, LPCTSTR szSection, std::map<CString, CString> &mapV);
static bool getSectionContent(LPCTSTR szPath, LPCTSTR szSection, std::vector<std::pair<CString, CString>> &mapV);
static bool setSectionContent(LPCTSTR szPath, LPCTSTR szSection, const std::map<CString, CString> &mapV);
};