farm-ng-core
farm_ng::Uri Struct Reference

https://en.wikipedia.org/w/index.php?title=Uniform_Resource_Identifier&oldid=1072892451#Syntax More...

#include <uri.h>

Public Member Functions

 Uri ()
 
 Uri (std::string const &scheme, std::string const &authority, std::string const &path, std::string const &query="")
 Creates Uri. More...
 
std::string string () const
 Returns string representation of uri. More...
 

Public Attributes

std::string scheme
 The uri scheme. More...
 
std::string authority
 If scheme is device, then authority is [robot_name]. More...
 
std::string path
 if scheme is device, then path is path to underlying sensor such as sensor_rig_name/camera_stream_name. More...
 
std::string query
 If URI is used in component, then query is used to denote inputs or outputs. For instance: '?in=input_channel_name`. More...
 

Friends

bool operator< (Uri const &lhs, Uri const &rhs)
 

Detailed Description

Constructor & Destructor Documentation

◆ Uri() [1/2]

farm_ng::Uri::Uri ( )
inline

◆ Uri() [2/2]

farm_ng::Uri::Uri ( std::string const &  scheme,
std::string const &  authority,
std::string const &  path,
std::string const &  query = "" 
)
inline

Creates Uri.

Member Function Documentation

◆ string()

std::string farm_ng::Uri::string ( ) const
inline

Returns string representation of uri.

Friends And Related Function Documentation

◆ operator<

bool operator< ( Uri const &  lhs,
Uri const &  rhs 
)
friend

Member Data Documentation

◆ authority

std::string farm_ng::Uri::authority

If scheme is device, then authority is [robot_name].

◆ path

std::string farm_ng::Uri::path

if scheme is device, then path is path to underlying sensor such as sensor_rig_name/camera_stream_name.

◆ query

std::string farm_ng::Uri::query

If URI is used in component, then query is used to denote inputs or outputs. For instance: '?in=input_channel_name`.

◆ scheme

std::string farm_ng::Uri::scheme

The uri scheme.


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