30#include <sptk5/Strings.h>
31#include <sptk5/sptk.h>
32#include <sptk5/string_ext.h>
51 mutable std::mutex m_mutex;
81 void set(
const char* file,
int line)
83 std::scoped_lock > lock(m_mutex);
93 std::scoped_lock lock(m_mutex);
102 std::scoped_lock lock(m_mutex);
111 std::scoped_lock lock(m_mutex);
120 std::scoped_lock lock(m_mutex);
121 return (m_file == NULL) && (m_line == 0);
Location object.
Definition: Location.h:47
void set(const char *file, int line)
Modifies location.
Definition: Location.h:81
int line() const
Returns location line number.
Definition: Location.h:100
bool empty() const
Returns true if location is empty.
Definition: Location.h:118
String toString() const
Returns string presentation of location.
Definition: Location.h:109
const char * file() const
Returns location file name.
Definition: Location.h:91
CLocation(const char *file, int line)
Constructor.
Definition: Location.h:70
String SP_EXPORT int2string(int32_t)