A class representing a route argument. More...
#include <route_arg.hpp>
Public Member Functions | |
| RouteArg (RouteArgDef def, std::string data) | |
| RouteArgType | getType () const |
| Gets the type of the route argument. | |
| const std::string & | getData () const |
| Gets the data associated with the route argument. | |
| RouteArgRequirement | getRequirement () const |
| Gets the requirement of the route argument. | |
| const std::vector< std::unique_ptr< RouteArgDef > > & | getChildren () const |
| Gets the children of the route argument. | |
A class representing a route argument.
This class represents a route argument, which is a pair of RouteArgType and RouteArgRequirement. It also holds the data associated with the argument.
| dcn::RouteArg::RouteArg | ( | RouteArgDef | def, |
| std::string | data | ||
| ) |
| const std::vector< std::unique_ptr< RouteArgDef > > & dcn::RouteArg::getChildren | ( | ) | const |
Gets the children of the route argument.
| const std::string & dcn::RouteArg::getData | ( | ) | const |
Gets the data associated with the route argument.
| RouteArgRequirement dcn::RouteArg::getRequirement | ( | ) | const |
Gets the requirement of the route argument.
| RouteArgType dcn::RouteArg::getType | ( | ) | const |
Gets the type of the route argument.