printermanager.cpp
Go to the documentation of this file.
55 os<<"Tried to retrieve postprocessor reader object, but no PrinterManager has been set! This should be set during scan setup."; 62 errmsg<<"No postprocessor reader object found! This probably means that you are not scanning using the postprocessor. To retrieve data from previous output you must scan with the 'postproccesor' scanner."; 105 os << "Inifile entry 'printer:\""<<tag<<"\"' does not specify a valid printer! Please choose from one of the following:"<<std::endl; 122 os << "Tried to delete primary printer stream! Currently you are not permitted to do this. Why do you want to?"; 136 os << "Tried to delete printer stream '"<<name<<"', but could not find a print stream with that name! Perhaps it was never created, or was deleted already?"; 153 os << "Tried to delete reader object '"<<name<<"', but could not find a reader object with that name! Perhaps it was never created, or was deleted already?"; 179 DBUG( std::cout << "PrinterManager: Creating Auxilliary printer \"" << tag << "\" with name \"" << streamname << "\"" << std::endl; ) 185 // To construct printer as an auxilliary printer, a pointer to the primary printer is supplied as well as the options. 187 // Some printers may requires two-step initiations so this virtual function is provided to allow that. 195 DBUG( std::cout << "PrinterManager: Creating printer read stream of type \"" << tag << "\" with name \"" << readstreamname << "\"" << std::endl; ) 200 os << "PrinterManager: Tried to construct reader with name '"<<readstreamname<<"' as reader-type '"<<whichreader<<"', but this is not a valid reader type! Please choose one of the following:"<<std::endl; 223 DBUG( std::cout << "PrinterManager: Retrieving printer stream \"" << streamname << "\"" << std::endl; ) 228 printer_error().raise(LOCAL_INFO,"Error retrieving primary printer from PrinterManager! printerptr==NULL! Must be a bug in the PrinterManager initialisation."); 234 // Note that this routine automatically converts the BasePrinter pointer into a BaseBasePrinter pointer 241 errmsg << "Error! PrinterManager failed to retrieve the requested auxilliary print stream with name '"<<streamname<<"'! The stream may not have been created in the first place. Please check that the scanner plugin you are using correctly creates a printer stream with this name."; 251 // Note that this routine automatically converts the BaseReader pointer into a BaseBaseReader pointer 259 DBUG( std::cout << "PrinterManager: Retrieving reader stream \"" << readername << "\"" << std::endl; ) 260 // Note that this routine automatically converts the BaseReader pointer into a BaseBaseReader pointer 267 errmsg << "Error! PrinterManager failed to retrieve the requested reader stream with name '"<<readername<<"'! The reader may not have been created in the first place. Please check that the scanner plugin you are using correctly creates a reader stream with this name.";
Printers::PrinterManager * global_printer_manager Definition: printermanager.cpp:42 Manager class for creating printer objects. Definition: printermanager.hpp:49 void set_global_printer_manager(Printers::PrinterManager *pm) Definition: printermanager.cpp:69 std::map< std::string, BasePrinter * > auxprinters Map containing pointers to auxiliary printer objects. Definition: printermanager.hpp:53 void new_reader(const std::string &, const Options &) Create reader object. Definition: printermanager.cpp:193 BaseReader * get_full_reader(const std::string &readername) Retrieve non-basebase version of reader object (for use in module functions rather than ScannerBit) ... Definition: printermanager.cpp:257 TYPE getNode(const YAML::Node node) Wrapper for reading the node for a given type. Definition: yaml_node_utility.hpp:92 reg_elem< create_printer_function > printer_creators Definition: baseprinter.hpp:237 STL namespace. BaseBaseReader * get_reader(const std::string &) Getter for reader objects. Definition: printermanager.cpp:249 Declarations for the YAML options class. Manager class for printers. void finalise(bool abnormal=false) Instruct printers that scan has finished and to perform cleanup. Definition: printermanager.cpp:282 void set_resume_mode(bool rflag) Setter for "resume" mode flag (printer may override user choice if no previous output exists) ... Definition: baseprintermanager.hpp:52 bool reader_exists(const std::string &) Checker for existence of reader object. Definition: printermanager.cpp:274 BaseBasePrinter * get_stream(const std::string &="") Getter for auxiliary printer objects. Definition: printermanager.cpp:221 void new_stream(const std::string &, const Options &) Create auxiliary printer object. Definition: printermanager.cpp:175 Declaration and definition of printer base class. std::map< std::string, BaseReader * > readers Map containing pointers to reader objects. Definition: printermanager.hpp:56 TYPE getValueOrDef(TYPE def, const args &... keys) const Definition: yaml_options.hpp:115 reg_elem< create_reader_function > reader_creators Definition: baseprinter.hpp:240 void delete_reader(const std::string &) Definition: printermanager.cpp:142 Printers::PrinterManager * get_global_printer_manager() Definition: printermanager.cpp:45 void delete_stream(const std::string &="") Destruct printer/reader objects. Definition: printermanager.cpp:117 Manager class for creating printer objects. Definition: baseprintermanager.hpp:37 This is a minimal (pure virtual) precursor to the printer base class, for use only in ScannerBit... void setValue(const KEYTYPE &key, const VALTYPE &val) Basic setter, for adding extra options. Definition: yaml_options.hpp:135 Options options Storage for printer options (needed for creating new streams) Definition: printermanager.hpp:62 void create_resume_reader() Create for reader object for previous print output ("resume reader") Definition: printermanager.cpp:211 |