Application with basic command line options.
More...
#include <Application.h>
|
virtual void | add_options (CommandLine::Menu &)=0 |
| Add command line options.
|
|
virtual void | parse (int argc, char **argv) |
| Parse the command line options.
|
|
virtual void | set_quiet () |
| Operate in quiet mode.
|
|
virtual void | set_verbose () |
| Operate in verbose mode.
|
|
virtual void | set_very_verbose () |
| Operate in very verbose mode.
|
|
virtual void | setup () |
| Any extra setup before running main loop. More...
|
|
template<typename Compare > |
void | sort_archives (Compare c) |
|
virtual void | run () |
| The main loop.
|
|
virtual Archive * | load (const std::string &filename) |
| Load file.
|
|
virtual void | process (Archive *)=0 |
| Data analysis tasks implemented by most derived classes.
|
|
virtual bool | do_finish () |
| Return true if Options::finish tasks should be run after process.
|
|
virtual Archive * | result () |
| Return pointer to new result constructed by process method. More...
|
|
virtual void | finish (Archive *) |
| Finishing work performed on each output archive.
|
|
virtual void | finalize () |
| Any final work after main loop finishes. More...
|
|
Handle * | __reference (bool active) const |
|
void | __dereference (bool auto_delete=true) const |
|
|
std::vector< Reference::To< Options > > | options |
| Available options.
|
|
bool | has_manual |
| true if application has an online manual
|
|
bool | update_history |
| true if application should update the processing history
|
|
bool | stow_script |
| true if application receives a script name as the first file
|
|
std::string | name |
|
std::string | description |
|
std::string | version |
|
std::string | command |
|
std::string | script |
|
std::vector< std::string > | filenames |
|
std::vector< Reference::To< Archive > > | archives |
|
std::string | metafile |
|
bool | verbose |
|
bool | very_verbose |
|
bool | sort_filenames |
|
Application with basic command line options.
◆ finalize()
void Pulsar::Application::finalize |
( |
| ) |
|
|
protectedvirtual |
Any final work after main loop finishes.
Final steps, run once at end of program.
◆ must_save()
bool Pulsar::Application::must_save |
( |
| ) |
|
|
virtual |
Return true if the application needs to save data.
Return true if application must save data.
◆ result()
virtual Archive* Pulsar::Application::result |
( |
| ) |
|
|
inlineprotectedvirtual |
Return pointer to new result constructed by process method.
The result method was added to enable out-of-place process methods without changing the interface of the base class.
◆ setup()
void Pulsar::Application::setup |
( |
| ) |
|
|
protectedvirtual |
Any extra setup before running main loop.
Extra setup, run once before main loop.
The documentation for this class was generated from the following files: