LAL: Linear Arrangement Library 21.07.01
A library focused on algorithms on linear arrangements of graphs.
Loading...
Searching...
No Matches
lal::io::report_treebank_file Class Reference

Report on a treebank file. More...

#include <report_correctness.hpp>

Public Member Functions

 report_treebank_file ()=default
 Default constructor.
 
 report_treebank_file (const report_treebank_file &)=default
 Default copy constructor.
 
 report_treebank_file (report_treebank_file &&)=default
 Default move constructor.
 
 ~report_treebank_file ()=default
 Default destructor.
 
 report_treebank_file (uint32_t line_number, const std::string &error_message)
 Constructor.
 
report_treebank_fileoperator= (const report_treebank_file &)=default
 Default copy assignment.
 
report_treebank_fileoperator= (report_treebank_file &&)=default
 Default move assignment.
 
uint32_t get_line_number () const noexcept
 Returns the line number within the treebank file where the error is found.
 
const std::string & get_error_message () const noexcept
 Returns the error message.
 

Private Attributes

uint32_t m_treebank_file_line_number
 The line number within the treebank file.
 
std::string m_error_message
 Error message.
 

Detailed Description

Report on a treebank file.

Stores a simple error message and the line within the file where it is found.

Constructor & Destructor Documentation

◆ report_treebank_file()

lal::io::report_treebank_file::report_treebank_file ( uint32_t line_number,
const std::string & error_message )
inline

Constructor.

Parameters
line_numberLine number within the treebank file.
error_messageError message.

The documentation for this class was generated from the following file: