gambit is hosted by Hepforge, IPPP Durham
GAMBIT  v1.5.0-252-gf9a3f78
a Global And Modular Bsm Inference Tool
Gambit::Printers::BasePrinterManager Class Referenceabstract

Manager class for creating printer objects. More...

#include <baseprintermanager.hpp>

Inheritance diagram for Gambit::Printers::BasePrinterManager:

Public Member Functions

 BasePrinterManager ()
 
 BasePrinterManager (bool r)
 
bool resume_mode ()
 Getter for "resume" mode flag. More...
 
void set_resume_mode (bool rflag)
 Setter for "resume" mode flag (printer may override user choice if no previous output exists) More...
 
virtual void new_stream (const std::string &, const Options &)=0
 Create auxiliary printer object. More...
 
virtual void new_reader (const std::string &, const Options &)=0
 Create reader object. More...
 
virtual void create_resume_reader ()=0
 Create for reader object for previous print output ("resume reader") More...
 
virtual BaseBasePrinterget_stream (const std::string &="")=0
 Getter for auxiliary printer objects. More...
 
virtual BaseBaseReaderget_reader (const std::string &)=0
 Getter for readers. More...
 
virtual void delete_stream (const std::string &="")=0
 Delete reader and printer objects (does not harm output, just deletes the objects) More...
 
virtual void delete_reader (const std::string &)=0
 
virtual void finalise (bool abnormal=false)=0
 Instruct printers that scan has finished and to perform cleanup. More...
 

Private Attributes

bool resume
 Flag for "resume" mode. More...
 

Detailed Description

Manager class for creating printer objects.

Definition at line 37 of file baseprintermanager.hpp.

Constructor & Destructor Documentation

◆ BasePrinterManager() [1/2]

Gambit::Printers::BasePrinterManager::BasePrinterManager ( )
inline

Definition at line 44 of file baseprintermanager.hpp.

44 : resume(false) {}
bool resume
Flag for "resume" mode.

◆ BasePrinterManager() [2/2]

Gambit::Printers::BasePrinterManager::BasePrinterManager ( bool  r)
inline

Definition at line 45 of file baseprintermanager.hpp.

45 : resume(r) {}
bool resume
Flag for "resume" mode.
START_MODEL dNur_CMB r

Member Function Documentation

◆ create_resume_reader()

virtual void Gambit::Printers::BasePrinterManager::create_resume_reader ( )
pure virtual

Create for reader object for previous print output ("resume reader")

Implemented in Gambit::Printers::PrinterManager.

Referenced by set_resume_mode().

Here is the caller graph for this function:

◆ delete_reader()

virtual void Gambit::Printers::BasePrinterManager::delete_reader ( const std::string &  )
pure virtual

Implemented in Gambit::Printers::PrinterManager.

Referenced by set_resume_mode().

Here is the caller graph for this function:

◆ delete_stream()

virtual void Gambit::Printers::BasePrinterManager::delete_stream ( const std::string &  = "")
pure virtual

Delete reader and printer objects (does not harm output, just deletes the objects)

Implemented in Gambit::Printers::PrinterManager.

Referenced by set_resume_mode().

Here is the caller graph for this function:

◆ finalise()

virtual void Gambit::Printers::BasePrinterManager::finalise ( bool  abnormal = false)
pure virtual

Instruct printers that scan has finished and to perform cleanup.

Implemented in Gambit::Printers::PrinterManager.

Referenced by Gambit::Scanner::Scan_Manager::Run(), and set_resume_mode().

Here is the caller graph for this function:

◆ get_reader()

virtual BaseBaseReader* Gambit::Printers::BasePrinterManager::get_reader ( const std::string &  )
pure virtual

Getter for readers.

Implemented in Gambit::Printers::PrinterManager.

Referenced by set_resume_mode().

Here is the caller graph for this function:

◆ get_stream()

virtual BaseBasePrinter* Gambit::Printers::BasePrinterManager::get_stream ( const std::string &  = "")
pure virtual

Getter for auxiliary printer objects.

Implemented in Gambit::Printers::PrinterManager.

Referenced by set_resume_mode(), and Gambit::Scanner::TWalk().

Here is the caller graph for this function:

◆ new_reader()

virtual void Gambit::Printers::BasePrinterManager::new_reader ( const std::string &  ,
const Options  
)
pure virtual

Create reader object.

Implemented in Gambit::Printers::PrinterManager.

Referenced by set_resume_mode().

Here is the caller graph for this function:

◆ new_stream()

virtual void Gambit::Printers::BasePrinterManager::new_stream ( const std::string &  ,
const Options  
)
pure virtual

Create auxiliary printer object.

Implemented in Gambit::Printers::PrinterManager.

Referenced by scanner_plugin(), and set_resume_mode().

Here is the caller graph for this function:

◆ resume_mode()

bool Gambit::Printers::BasePrinterManager::resume_mode ( )
inline

Getter for "resume" mode flag.

Definition at line 48 of file baseprintermanager.hpp.

References resume.

Referenced by Gambit::Printers::PrinterManager::new_stream(), and Gambit::Scanner::Plugins::pluginInfo::resume_mode().

48 { return resume; }
bool resume
Flag for "resume" mode.
Here is the caller graph for this function:

◆ set_resume_mode()

void Gambit::Printers::BasePrinterManager::set_resume_mode ( bool  rflag)
inline

Setter for "resume" mode flag (printer may override user choice if no previous output exists)

Definition at line 52 of file baseprintermanager.hpp.

References create_resume_reader(), delete_reader(), delete_stream(), finalise(), get_reader(), get_stream(), new_reader(), and new_stream().

Referenced by Gambit::Printers::PrinterManager::PrinterManager().

52 { resume = rflag; }
bool resume
Flag for "resume" mode.
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ resume

bool Gambit::Printers::BasePrinterManager::resume
private

Flag for "resume" mode.

Definition at line 41 of file baseprintermanager.hpp.

Referenced by resume_mode().


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