android13/external/libconfig/contrib/chained/examples
liiir1985 7f62dcda9f initial 2024-06-22 20:45:49 +08:00
..
CMakeLists.txt initial 2024-06-22 20:45:49 +08:00
CreateProjectFiles.bat initial 2024-06-22 20:45:49 +08:00
README.md initial 2024-06-22 20:45:49 +08:00
example.cfg initial 2024-06-22 20:45:49 +08:00
example1.cpp initial 2024-06-22 20:45:49 +08:00
example2.cpp initial 2024-06-22 20:45:49 +08:00
example3.cpp initial 2024-06-22 20:45:49 +08:00
examples.cpp initial 2024-06-22 20:45:49 +08:00

README.md

Running the examples

Expected Console Output:

<<< Example 1 >>>

'longitude' setting is out of valid bounds (max: 180). Value was: 1200.35
Missing 'latitude' setting in configuration file.
Cannot proceed until all mandatory settings are set.


<<< Example 2 >>>

TITLE                           AUTHOR                           PRICE   QTY
Treasure Island                 Robert Louis Stevenson          $ 29.99  5
Snow Crash                      Neal Stephenson                 $  9.99  8


<<< Example 3 >>>

'longitude' setting is out of valid bounds (max: 180). Value was: 1200.35
Missing 'latitude' setting in configuration file.
Cannot proceed until all mandatory settings are set.

Expected Config Layout:

// -- begin --
name = "<name>";
abstract = "<unknown>";
longitude = 0.0;
latitude = 0.0;
inventory =
{
   movies = ( );
   books = (
      {
         title = "bookXYZ";
      } );
};
// --- end ---