Generator that produces a YAML description of the input.
Definition at line 10 of file YamlGenerator.h.
#include <Rosebud/YamlGenerator.h>
|
static Ptr | instance () |
|
static void | registerGenerator (const Ptr &) |
| Register a backend for use later.
|
|
static const std::vector< Ptr > & | registeredGenerators () |
| Return all registered backends.
|
|
static Ptr | lookup (const std::string &) |
| Return the registered generator with the specified name.
|
|
static void | addAllToParser (Sawyer::CommandLine::Parser &) |
| Add all known generator switches to parser.
|
|
|
std::string | generatedByRosebud (const std::string &prefix) |
| Return a multi-line comment that this file was generated by Rosebud.
|
|
◆ Ptr
using Rosebud::YamlGenerator::Ptr = std::shared_ptr<YamlGenerator> |
◆ YamlGenerator()
Rosebud::YamlGenerator::YamlGenerator |
( |
| ) |
|
|
inlineprotected |
◆ name()
virtual std::string Rosebud::YamlGenerator::name |
( |
| ) |
const |
|
overridevirtual |
◆ purpose()
virtual std::string Rosebud::YamlGenerator::purpose |
( |
| ) |
const |
|
overridevirtual |
◆ adjustParser()
Add command-line switches and documentation to a parser.
Any command-line switches and documentation that is specific to the backend are added to the specified parser. In order to not conflict with other backends that might also be adding switch parsers, the backend should create a switch group and give it a unique prefix.
Reimplemented from Rosebud::Generator.
◆ generate()
Generate code.
The specified project AST is used to generate code.
Implements Rosebud::Generator.
The documentation for this class was generated from the following file: