├── test
├── int_test
│ ├── sys.ini
│ ├── config.ini
│ └── xml
│ │ ├── section1.xml
│ │ ├── sectionobj.xml
│ │ └── section2.xml
├── config_lock.ini
├── dummy.ini
├── expect_line.hpp
├── section_test.cpp
├── option_wrapper_test.cpp
├── option_base_test.cpp
├── meson.build
├── config_manager_test.cpp
├── log_test.cpp
├── number_locale_test.cpp
├── duration_test.cpp
├── option_test.cpp
├── file_test.cpp
└── xml_test.cpp
├── meson_options.txt
├── src
├── section-impl.hpp
├── option-impl.hpp
├── option.cpp
├── section.cpp
├── config-manager.cpp
├── log.cpp
├── compound-option.cpp
├── duration.cpp
├── xml.cpp
└── file.cpp
├── include
├── meson.build
└── wayfire
│ ├── config
│ ├── option-types.hpp
│ ├── config-manager.hpp
│ ├── section.hpp
│ ├── xml.hpp
│ ├── file.hpp
│ ├── option-wrapper.hpp
│ ├── option.hpp
│ ├── compound-option.hpp
│ └── types.hpp
│ ├── util
│ ├── stringify.hpp
│ ├── log.hpp
│ └── duration.hpp
│ └── nonstd
│ └── safe-list.hpp
├── .github
└── workflows
│ └── ci.yaml
├── LICENSE
└── meson.build
/test/int_test/sys.ini:
--------------------------------------------------------------------------------
1 | [section2]
2 | option5 = Option5Sys
3 |
--------------------------------------------------------------------------------
/test/config_lock.ini:
--------------------------------------------------------------------------------
1 |
2 | [section1]
3 |
4 | option1 = 12
5 |
6 | [section2]
7 |
8 | option2 = opt2
9 |
--------------------------------------------------------------------------------
/test/dummy.ini:
--------------------------------------------------------------------------------
1 | [section1]
2 | option1 = 4
3 | option2 = 45 \# 46 \\
4 |
5 | [section2]
6 | bey_k1 = 1.200000
7 | hey_k1 = 1
8 | option1 = 4.250000
9 |
10 |
--------------------------------------------------------------------------------
/test/int_test/config.ini:
--------------------------------------------------------------------------------
1 |
2 | [section1]
3 |
4 | option1 = 12
5 |
6 | [section2]
7 |
8 | option2 = opt2
9 | option3 = DoesNotExistInXML \# \\
10 |
11 | [sectionobj:objtest]
12 |
13 | option6 = 11
14 |
--------------------------------------------------------------------------------
/meson_options.txt:
--------------------------------------------------------------------------------
1 | option('tests', type: 'feature', value: 'auto', description: 'Enable unit tests')
2 | option('locale_test', type : 'boolean', value : false, description: 'Test number to string conversions with de_DE locale (must be installed)')
3 |
--------------------------------------------------------------------------------
/test/int_test/xml/section1.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | General
5 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/test/int_test/xml/sectionobj.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
11 |
12 |
--------------------------------------------------------------------------------
/src/section-impl.hpp:
--------------------------------------------------------------------------------
1 | #pragma once
2 |
3 | #include
4 | #include
5 | #include