WPILibC++ 2024.3.2
wpi::structparser::Parser Class Reference

Raw struct schema parser. More...

#include <wpi/struct/SchemaParser.h>

Public Member Functions

 Parser (std::string_view in)
 Construct a raw struct schema parser. More...
 
bool Parse (ParsedSchema *out)
 Parses the schema. More...
 
const std::string & GetError () const
 Gets the parser error if one occurred. More...
 

Detailed Description

Raw struct schema parser.

Constructor & Destructor Documentation

◆ Parser()

wpi::structparser::Parser::Parser ( std::string_view  in)
inlineexplicit

Construct a raw struct schema parser.

Parameters
inschema

Member Function Documentation

◆ GetError()

const std::string & wpi::structparser::Parser::GetError ( ) const
inline

Gets the parser error if one occurred.

Returns
parser error; blank if no error occurred

◆ Parse()

bool wpi::structparser::Parser::Parse ( ParsedSchema out)

Parses the schema.

Parameters
[out]outparsed schema object
Returns
true on success, false on failure (use GetError() to get error)

The documentation for this class was generated from the following file: