mirror of
https://github.com/mariiaan/minipp.git
synced 2026-05-14 10:11:17 +02:00
Projektdateien hinzufügen.
This commit is contained in:
22
minipp/test.cpp
Normal file
22
minipp/test.cpp
Normal file
@@ -0,0 +1,22 @@
|
||||
#include "minipp/minipp.hpp"
|
||||
|
||||
int main()
|
||||
{
|
||||
minipp::MiniPPFile file;
|
||||
auto result = file.Parse("test.mini");
|
||||
|
||||
auto& section = file.GetRoot();
|
||||
|
||||
minipp::MiniPPFile::Section* profileSection = section.GetSubSection("profile", &result);
|
||||
|
||||
minipp::MiniPPFile::IntValue* value;
|
||||
auto result1 = profileSection->GetValue(&value, "window_width");
|
||||
|
||||
auto result2 = value->GetValue();
|
||||
|
||||
auto marianProfile = section.GetSubSection("profile.marian", &result);
|
||||
minipp::MiniPPFile::StringValue* dockOutlinerType;
|
||||
marianProfile->GetValue(&dockOutlinerType, "dock_outliner");
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user