26 lines
430 B
C++
26 lines
430 B
C++
|
#ifndef jk_LOC_HPP
|
||
|
#define jk_LOC_HPP
|
||
|
|
||
|
#include "commons.hpp"
|
||
|
|
||
|
namespace jk
|
||
|
{
|
||
|
class Loc
|
||
|
{
|
||
|
public:
|
||
|
explicit Loc(std::filesystem::path path, int line, int column);
|
||
|
virtual ~Loc();
|
||
|
|
||
|
std::filesystem::path path() const { return m_path; }
|
||
|
int line() const { return m_line; }
|
||
|
int column() const { return m_column; }
|
||
|
|
||
|
private:
|
||
|
std::filesystem::path m_path;
|
||
|
int m_line;
|
||
|
int m_column;
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif
|