Document format placeholders in KeywordLocation

This commit is contained in:
Joakim Hove 2020-09-22 10:01:53 +02:00
parent 11d5128cbf
commit f604f94e89

View File

@ -20,10 +20,25 @@
#ifndef KEYWORD_LOCATION_HPP
#define KEYWORD_LOCATION_HPP
#include <string>
namespace Opm {
class KeywordLocation {
public:
/*
Observe that many error messages whcih should print out the name of the
problem keyword along with the location {} placeholders can be used. The
convention is:
{keyword} -> keyword
{file} -> filename
{line} -> lineno
This convention must be adhered to at the call site *creating the output
string*.
*/
std::string keyword;
std::string filename = "<memory string>";
std::size_t lineno = 0;