Decentralised Art Server
High-performance C++ backend that exposes HTML interface and a secure REST API for managing Performative Transactions entities
 
Loading...
Searching...
No Matches
dcn::RouteArg Class Reference

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ RouteArg()

dcn::RouteArg::RouteArg ( RouteArgDef  def,
std::string  data 
)

Member Function Documentation

◆ getChildren()

const std::vector< std::unique_ptr< RouteArgDef > > & dcn::RouteArg::getChildren ( ) const

Gets the children of the route argument.

Returns
The children of the route argument.

◆ getData()

const std::string & dcn::RouteArg::getData ( ) const

Gets the data associated with the route argument.

Returns
The data associated with the route argument.

◆ getRequirement()

RouteArgRequirement dcn::RouteArg::getRequirement ( ) const

Gets the requirement of the route argument.

Returns
The requirement of the route argument.

◆ getType()

RouteArgType dcn::RouteArg::getType ( ) const

Gets the type of the route argument.

Returns
The type of the route argument.

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