A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
Loading...
Searching...
No Matches
discover.h File Reference
#include <cstddef>
#include <optional>
#include <string>
#include <string_view>
#include <vector>
#include <absl/types/span.h>
#include "a11/flow/catalogue.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  a11::flow::discover::Options
 What to read and what to leave alone. More...
 
struct  a11::flow::discover::Result
 What a scan found, and what it did not read. More...
 

Namespaces

namespace  a11
 
namespace  a11::flow
 
namespace  a11::flow::discover
 Finding the actions a project declares, by reading its source.
 

Typedefs

using a11::flow::discover::Origin = catalogue::Origin
 Where a declaration was written.
 

Enumerations

enum class  a11::flow::discover::Language { a11::flow::discover::kPython , a11::flow::discover::kCpp , a11::flow::discover::kTypeScript }
 A language an ActionSchema may be declared in. More...
 

Functions

std::optional< Language > a11::flow::discover::LanguageOf (std::string_view path)
 The language a path's extension says it is, or nullopt for a file this does not read.
 
Result a11::flow::discover::Discover (absl::Span< const std::string > roots, const Options &options=Options::Default())
 Every ActionSchema declared under roots, as a catalogue with origins.
 
catalogue::Catalogue a11::flow::discover::DiscoverInSource (std::string_view source, std::string_view path, Language language)
 The same, for one file whose text is already in hand.
 

Variables

constexpr std::string_view a11::flow::discover::kScanFormat = catalogue::kCatalogueFormat
 The format field of the envelope a scan answers with, which is the catalogue's own: what a scan produces is a catalogue, and a consumer that had to tell them apart would be a consumer with two code paths for one thing.