Application with basic command line options.
More...
#include <Application.h>
|
|
| Application (const std::string &name, const std::string &description) |
| | Construct with the application name and a short description.
|
|
virtual int | main (int argc, char **argv) |
| | Execute the main loop.
|
|
void | add (Options *) |
| | Add options to the application.
|
|
std::string | get_name () const |
| | Get the application name.
|
|
std::string | get_description () const |
| | Get the application description.
|
|
bool | get_verbose () const |
| | Get the verbosity flag.
|
| virtual bool | must_save () |
| | Return true if the application needs to save data.
|
|
| Able (const Able &) |
|
Able & | operator= (const Able &) |
|
unsigned | get_reference_count () const |
|
| HeapTracked (const HeapTracked &) |
|
HeapTracked & | operator= (const HeapTracked &) |
|
bool | __is_on_heap () const |
|
|
virtual void | add_options (CommandLine::Menu &) |
| | 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.
|
|
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.
|
|
virtual void | finish (Archive *) |
| | Finishing work performed on each output archive.
|
| virtual void | finalize () |
| | Any final work after main loop finishes.
|
|
void | set_commit_hash (const std::string &hash) |
|
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.
Referenced by main().
◆ 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.
Referenced by load(), and run().
◆ setup()
| void Pulsar::Application::setup |
( |
| ) |
|
|
protectedvirtual |
Any extra setup before running main loop.
Extra setup, run once before main loop.
Referenced by main().
The documentation for this class was generated from the following files: