casacore
|
A class to provide a simple interface to history writing. More...
#include <MSHistoryHandler.h>
Public Member Functions | |
MSHistoryHandler (MeasurementSet &ms, const String &app="") | |
Construct the history handler from an ms. More... | |
MSHistoryHandler & | operator= (const MSHistoryHandler &other) |
~MSHistoryHandler () | |
Destructor. More... | |
void | addMessage (const String &message, const String &cliComm="", const String &origin="") |
Add message and/or CLI command to the history table. More... | |
void | addMessage (LogIO &message, const String &cliComm="") |
In this version the LogIO object need to have a valid LogSink with messages in it. More... | |
void | addMessage (LogSinkInterface &sink, const String &cliComm="") |
void | cliCommand (const String &cliComm) |
void | cliCommand (LogIO &cliComm) |
void | cliCommand (LogSinkInterface &sink) |
Static Public Member Functions | |
static void | addMessage (MeasurementSet &ms, const String &message, const String &app="", const String &cliComm="", const String &origin="") |
Add a string message. More... | |
Private Member Functions | |
MSHistoryHandler () | |
Prevent use of default constructor. More... | |
Private Attributes | |
MSHistoryColumns * | msHistCol_p |
MSHistory | histTable_p |
String | application_p |
A class to provide a simple interface to history writing.
Internal
Handle the history info that needs to be archived in ms
This class provides access to the MS history via single method calls One of the methods is static and can be called on a MeasurementSet without constructing any MSHistoryHandler objects.
Definition at line 55 of file MSHistoryHandler.h.
casacore::MSHistoryHandler::MSHistoryHandler | ( | MeasurementSet & | ms, |
const String & | app = "" |
||
) |
Construct the history handler from an ms.
casacore::MSHistoryHandler::~MSHistoryHandler | ( | ) |
Destructor.
|
inlineprivate |
Prevent use of default constructor.
Definition at line 92 of file MSHistoryHandler.h.
|
static |
Add a string message.
This method does not need construction...can be called explicitly it flushes the history table of the ms
void casacore::MSHistoryHandler::addMessage | ( | const String & | message, |
const String & | cliComm = "" , |
||
const String & | origin = "" |
||
) |
Add message and/or CLI command to the history table.
It does not flush the table (the destructor will flush).
void casacore::MSHistoryHandler::addMessage | ( | LogSinkInterface & | sink, |
const String & | cliComm = "" |
||
) |
void casacore::MSHistoryHandler::cliCommand | ( | const String & | cliComm | ) |
void casacore::MSHistoryHandler::cliCommand | ( | LogIO & | cliComm | ) |
void casacore::MSHistoryHandler::cliCommand | ( | LogSinkInterface & | sink | ) |
MSHistoryHandler& casacore::MSHistoryHandler::operator= | ( | const MSHistoryHandler & | other | ) |
|
private |
Definition at line 96 of file MSHistoryHandler.h.
|
private |
Definition at line 95 of file MSHistoryHandler.h.
|
private |
Definition at line 94 of file MSHistoryHandler.h.