HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Member Functions | Friends
tt::parse_location Class Reference

#include <ttauri/parse_location.hpp>

Public Member Functions

 parse_location () noexcept
 Construct an empty location object.
 
 parse_location (std::shared_ptr< URL > const &file) noexcept
 Construct a location.
 
 parse_location (URL const &file) noexcept
 Construct a location.
 
 parse_location (std::shared_ptr< URL > const &file, int line, int column) noexcept
 Construct a location.
 
 parse_location (int line, int column) noexcept
 Construct a location.
 
bool has_file () const noexcept
 
URL file () const noexcept
 
int line () const noexcept
 
int column () const noexcept
 
std::pair< int, int > line_and_column () const noexcept
 
void set_file (std::shared_ptr< URL > file)
 
void set_file (URL file)
 
void set_line (int line) noexcept
 
void set_column (int column) noexcept
 
void set_line_and_column (std::pair< int, int > line_and_column) noexcept
 
void increment_column () noexcept
 
void tab_column () noexcept
 
void increment_line () noexcept
 
parse_locationoperator+= (char c) noexcept
 
parse_locationoperator+= (std::string const &s) noexcept
 
parse_locationoperator+= (char const *s) noexcept
 
parse_locationoperator+= (parse_location const &location) noexcept
 

Friends

std::string to_string (parse_location const &l) noexcept
 
std::ostreamoperator<< (std::ostream &os, parse_location const &l)
 

Detailed Description

Location inside a configuration file.

Constructor & Destructor Documentation

◆ parse_location() [1/5]

tt::parse_location::parse_location ( )
inlinenoexcept

Construct an empty location object.

◆ parse_location() [2/5]

tt::parse_location::parse_location ( std::shared_ptr< URL > const & file)
inlinenoexcept

Construct a location.

Parameters
fileAn URL to the file where the token was found.

◆ parse_location() [3/5]

tt::parse_location::parse_location ( URL const & file)
inlinenoexcept

Construct a location.

Parameters
fileAn URL to the file where the token was found.

◆ parse_location() [4/5]

tt::parse_location::parse_location ( std::shared_ptr< URL > const & file,
int line,
int column )
inlinenoexcept

Construct a location.

Parameters
fileAn URL to the file where the token was found.
lineLine number where the token was found.
columnColumn where the token was found.

◆ parse_location() [5/5]

tt::parse_location::parse_location ( int line,
int column )
inlinenoexcept

Construct a location.

Parameters
lineLine number where the token was found.
columnColumn where the token was found.

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