mavtables  0.2.1
MAVLink router and firewall.
Functions
Configuration functions.

Functions

std::ostream & config::print_node (std::ostream &os, const config::parse_tree::node &node, bool print_location, const std::string &prefix)
 
std::ostream & operator<< (std::ostream &os, const config::parse_tree::node &node)
 

Detailed Description

These functions are used to parse the configuration file.

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  os,
const config::parse_tree::node &  node 
)

Print AST node to the given output stream.

This is the same as calling config::print_node with the location option set to true.

Parameters
osThe output stream to print to.
nodeThe node to print, also prints it's children.
Returns
The output stream.

Definition at line 229 of file config_grammar.cpp.

References print_node().

Here is the call graph for this function:

◆ print_node()

std::ostream & config::print_node ( std::ostream &  os,
const config::parse_tree::node &  node,
bool  print_location,
const std::string &  prefix 
)

Print an AST node and all its children.

Parameters
osThe output stream to print to.
nodeThe node to print, also prints it's children.
print_locationSet to true to print file and line numbers of each AST node.
prefixA string to prefix to each AST element. This is reserved for internal use.
Returns
The output stream.

Definition at line 166 of file config_grammar.cpp.

Here is the caller graph for this function: