23 lines
660 B
C++
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> §ions);
|
|
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);
|
|
};
|
|
|