Parsing and State Machines
Explore how to parse configuration files containing various data types using std::variant for better type safety. Understand modeling state machines like a door's state by leveraging C++17 features, and gain practical insights to implement these concepts effectively.
We'll cover the following...
We'll cover the following...
Parsing a Config File
The idea comes from the previous example of a command line. In the case of a configuration file, we usually work with pairs of <Name, Value>. Where Value might be a different type: string, int, ...