goptions
Loading...
Searching...
No Matches
goption.cc File Reference

Implementation of GOption : the option container used by GOptions : . More...

#include "goption.h"
#include "goptionsConventions.h"
#include "gutilities.h"
#include "gutsConventions.h"
#include <iostream>
#include <algorithm>
#include <functional>
Include dependency graph for goption.cc:

Go to the source code of this file.

Detailed Description

GOption : supports:

  • Scalar options (single value) stored as a YAML scalar.
  • Structured options stored as YAML maps or sequences of maps.

Structured options can be cumulative (sequence of maps). In that mode:

  • Some keys may be mandatory (schema value is goptions::NODFLT : ).
  • Missing non-mandatory keys can be filled from schema defaults.

Definition in file goption.cc.