Represents the position of the data element within a configuration string.
Position comprises a file name, line number and an offset within this line where the element value starts. For example, if the JSON string is
{ "foo": "some string",
"bar": 123 }
the position of the element "bar" is: line_ = 2; pos_ = 9, because beginning of the value "123" is at offset 9 from the beginning of the second line, including whitespaces.
Note that the Position
structure is used as an argument to Element
constructors and factory functions to avoid ambiguity and so that the uint32_t arguments holding line number and position within the line are not confused with the Element
values passed to these functions.
Definition at line 94 of file data.h.