Managing Settings with Boost PropertyTree
Автор: Utah Cpp Programmers
Загружено: 2025-08-13
Просмотров: 338
Описание:
Configuration files full of settings are often a necessary but boring piece of code you have to maintain. Over time, settings are added and removed and with bespoke code it often means changing little fiddly bits of code.
Boost.PropertyTree is a library that lets you store "an arbitrarily deeply nested tree of values, indexed at each level by some key". It has parsers for INI, JSON and XML files that can deserialize the files into a property tree and serialize them back out to the same file.
This month, Richard Thomson will give us a gentle introduction to Boost.PropertyTree with an eye towards INI and JSON file processing.
Docs: https://www.boost.org/doc/libs/latest...
Sample code: https://github.com/LegalizeAdulthood/...
00:00 Introduction
01:26 What Is a Property Tree?
03:15 Getting Boost PropertyTree
05:50 Client API Alternatives
06:42 Example Configuration Data
10:18 Generic Settings Type
12:09 Custom Settings Type
13:50 Generic Implementation
17:05 Generic Metadata
20:20 PropertyTree to Generic Settings
26:31 Generic Settings to PropertyTree
29:24 Load/Save Generic Settings
30:45 Custom Implementation
31:06 PropertyTree to Custom Settings
33:22 Custom Settings to PropertyTree (Buggy?)
35:17 Load/Save Custom Settings
35:48 Practical Considerations
41:34 Sample Program
45:26 Wrap Up
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: