basebaseprinter.hpp File Reference This is a minimal (pure virtual) precursor to the printer base class, for use only in ScannerBit. More... #include <string> #include <sstream> #include <vector> #include <boost/preprocessor/seq/for_each.hpp> #include "gambit/ScannerBit/printable_types.hpp" #include "gambit/Utils/standalone_error_handlers.hpp" #include "gambit/Printers/printer_id_tools.hpp" #include "gambit/Utils/new_mpi_datatypes.hpp"
Include dependency graph for basebaseprinter.hpp:
![]()
This graph shows which files directly or indirectly include this file:
![]() Go to the source code of this file.
Detailed DescriptionThis is a minimal (pure virtual) precursor to the printer base class, for use only in ScannerBit. This helps to minimize the parts of the printers which are essential for ScannerBit to run. Now includes base 'reader' class as well, for retrieving data from printer output Authors (add name and date if you modify):
Definition in file basebaseprinter.hpp. Macro Definition Documentation◆ ADD_VIRTUAL_PRINTS
Definition at line 227 of file basebaseprinter.hpp. ◆ ADD_VIRTUAL_RETRIEVALS
Definition at line 418 of file basebaseprinter.hpp. Referenced by Gambit::Printers::BaseReader::retrieve(). ◆ VPRINT
Value:
virtual void _print(elem const&, const std::string& label, \ { \ std::ostringstream err; \ \ err << "No print function override has been " \ << "\ndefined for this type (for whatever printer" \ << "\nclass the current printer comes from)" \ << "\n Dumping available info..." \ << "\n Label : " << label \ << "\n vertexID : " << vertexID \ << "\n Type : " << STRINGIFY(elem); \ printer_error().raise(LOCAL_INFO,err.str()); \ } \ \ /* version that assigns vertexID automatically */ \ virtual void _print(elem const& in, const std::string& label, \ const ulong pointID) \ { \ _print(in,label,get_param_id(label),rank,pointID); \ }
Definition: log_tags.hpp:38 EXPORT_SYMBOLS int get_param_id(const std::string &name, bool &is_new) Consolidated 'get id' function, for both main and aux. Definition: printer_id_tools.cpp:54 Definition at line 202 of file basebaseprinter.hpp. ◆ VRETRIEVE
Value:
virtual bool _retrieve(elem& /*output*/, \ const std::string& label, \ ) \ { \ std::ostringstream err; \ \ err << "No retrieve function override has been " \ << "\ndefined for this retrieval type (for whatever printer" \ << "\nclass the current printer comes from)" \ << "\n Dumping available info..." \ << "\n Label : " << label \ << "\n Type : " << STRINGIFY(elem); \ printer_warning().raise(LOCAL_INFO,err.str()); \ return false; \ }
Definition: log_tags.hpp:38 Definition at line 399 of file basebaseprinter.hpp. |