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_collection Class Reference

Report on a treebank collection. More...

#include <report_correctness.hpp>

Public Member Functions

 report_treebank_collection ()=default
 Default constructor.
 
 report_treebank_collection (const report_treebank_collection &)=default
 Default copy constructor.
 
 report_treebank_collection (report_treebank_collection &&)=default
 Default move constructor.
 
 ~report_treebank_collection ()=default
 Default destructor.
 
 report_treebank_collection (const std::string &treebank_file_path, uint32_t main_file_line, uint32_t treebank_line_number, const std::string &error_message) noexcept
 Constructor with data.
 
report_treebank_collectionoperator= (const report_treebank_collection &)=default
 Default copy assignment.
 
report_treebank_collectionoperator= (report_treebank_collection &&)=default
 Default move assignment.
 
const std::string & get_treebank_file_name () const noexcept
 Returns the line number within the treebank file where the error is found.
 
uint32_t get_line_within_main_file () const noexcept
 Returns the error message.
 
uint32_t get_treebank_file_line () 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

std::string m_treebank_file_path
 Filename to the treebank file.
 
uint32_t m_main_file_line
 Line within the main file where the treebank file is found.
 
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 collection.

Stores a simple error message and the line within the file where it is found (see lal::io::report_treebank_file), and the name of the treebank where the error is found and the line within the main file where the treebank was read at.

Constructor & Destructor Documentation

◆ report_treebank_collection()

lal::io::report_treebank_collection::report_treebank_collection ( const std::string & treebank_file_path,
uint32_t main_file_line,
uint32_t treebank_line_number,
const std::string & error_message )
inlinenoexcept

Constructor with data.

Parameters
treebank_file_pathName of the treebank where the error is found.
main_file_lineLine within the main file.
treebank_line_numberLine within the treebank file.
error_messageError message.

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