irccd
3.0.3
|
Describe a token read in the .ini source. More...
#include <ini.hpp>
Public Types | |
enum | type { include, tryinclude, section, word, quoted_word, assign, list_begin, list_end, comma } |
token type. More... | |
Public Member Functions | |
token (type type, unsigned line, unsigned column, std::string value="") noexcept | |
auto | get_type () const noexcept -> type |
auto | get_line () const noexcept -> unsigned |
auto | get_column () const noexcept -> unsigned |
auto | get_value () const noexcept -> const std::string & |
Describe a token read in the .ini source.
This class can be used when you want to parse a .ini file yourself.
|
noexcept |
Construct a token.
type | the type |
line | the line |
column | the column |
value | the value |
|
noexcept |
Get the column.
|
noexcept |
Get the line.
|
noexcept |
Get the type.
|
noexcept |
Get the value. For words, quoted words and section, the value is the content. Otherwise it's the characters parsed.