#include <BlockDescription.hpp>
Parse multiple sources for block description markup and manages the resulting JSON descriptions.
◆ BlockDescriptionParser()
Pothos::Util::BlockDescriptionParser::BlockDescriptionParser |
( |
void |
| ) |
|
Create an empty block description parser.
◆ feedFilePath()
void Pothos::Util::BlockDescriptionParser::feedFilePath |
( |
const std::string & |
filePath | ) |
|
Feed the parser a source file with embedded markup.
- Parameters
-
filePath | the path to a source file |
- Exceptions
-
◆ feedStream()
void Pothos::Util::BlockDescriptionParser::feedStream |
( |
std::istream & |
is | ) |
|
Feed the parser a source file with embedded markup.
- Parameters
-
is | an input stream like an open file |
- Exceptions
-
◆ getJSONArray()
std::string Pothos::Util::BlockDescriptionParser::getJSONArray |
( |
const size_t |
indent = 0 | ) |
const |
Get a JSON array containing all block descriptions.
- Returns
- a string containing a JSON array
◆ getJSONObject()
std::string Pothos::Util::BlockDescriptionParser::getJSONObject |
( |
const std::string & |
factoryPath, |
|
|
const size_t |
indent = 0 |
|
) |
| const |
Get a JSON object for a single block description.
- Parameters
-
factoryPath | a discovered factory path |
indent | indentation level for formatting |
- Returns
- a string containing a JSON object
◆ listFactories()
std::vector<std::string> Pothos::Util::BlockDescriptionParser::listFactories |
( |
void |
| ) |
const |
Get all factories that were discovered when parsing.
The documentation for this class was generated from the following file: