Thea
Static Public Member Functions | List of all members
Application Class Reference

Access and modify global properties of the current application. More...

#include <Application.hpp>

Static Public Member Functions

static DynLibManagergetDynLibManager ()
 Get the global dynamic library manager. More...
 
static Algorithms::EigenSolverManagergetEigenSolverManager ()
 Get the global eigensolver manager. More...
 
static Algorithms::LinearSolverManagergetLinearSolverManager ()
 Get the global linear solver manager. More...
 
static Algorithms::NumericalOptimizerManagergetNumericalOptimizerManager ()
 Get the global numerical optimizer manager. More...
 
static PluginManagergetPluginManager ()
 Get the global plugin manager. More...
 
static std::string getPluginPath (std::string const &plugin_name, Array< std::string > const *plugin_dirs=nullptr)
 Get the fully qualified path to a plugin, or the empty string if it cannot be found. More...
 
static Graphics::RenderSystemManagergetRenderSystemManager ()
 Get the global rendersystem manager. More...
 
static std::string const & getResourceArchive ()
 Get the archive in which the application will look for resources (by default the directory containing the executable). More...
 
static std::string getResourcePath (std::string const &resource_name)
 Get the fully qualified path to a resource, or the empty string if it cannot be found. More...
 
static std::string programPath ()
 Get the path to the current program. More...
 
static void setResourceArchive (std::string const &path)
 Set the archive in which the application will look for resources. More...
 

Detailed Description

Access and modify global properties of the current application.

Definition at line 43 of file Application.hpp.

Member Function Documentation

static DynLibManager& getDynLibManager ( )
static

Get the global dynamic library manager.

Definition at line 78 of file Application.hpp.

static Algorithms::EigenSolverManager& getEigenSolverManager ( )
static

Get the global eigensolver manager.

Definition at line 81 of file Application.hpp.

static Algorithms::LinearSolverManager& getLinearSolverManager ( )
static

Get the global linear solver manager.

Definition at line 84 of file Application.hpp.

static Algorithms::NumericalOptimizerManager& getNumericalOptimizerManager ( )
static

Get the global numerical optimizer manager.

Definition at line 87 of file Application.hpp.

static PluginManager& getPluginManager ( )
static

Get the global plugin manager.

Definition at line 75 of file Application.hpp.

std::string getPluginPath ( std::string const &  plugin_name,
Array< std::string > const *  plugin_dirs = nullptr 
)
static

Get the fully qualified path to a plugin, or the empty string if it cannot be found.

The search order is:

  • Directory containing executable
  • "lib" folder in parent of above directory
  • User-supplied plugin_dirs, if not null
  • System directories, e.g. /usr/lib and /usr/local/lib
Parameters
plugin_nameName of the plugin, with or without extension, relative path, leading "lib", etc.
plugin_dirsOptional additional set of search directories.

Definition at line 123 of file Application.cpp.

static Graphics::RenderSystemManager& getRenderSystemManager ( )
static

Get the global rendersystem manager.

Definition at line 90 of file Application.hpp.

static std::string const& getResourceArchive ( )
static

Get the archive in which the application will look for resources (by default the directory containing the executable).

Definition at line 52 of file Application.hpp.

std::string getResourcePath ( std::string const &  resource_name)
static

Get the fully qualified path to a resource, or the empty string if it cannot be found.

Definition at line 116 of file Application.cpp.

std::string programPath ( )
static

Get the path to the current program.

Definition at line 66 of file Application.cpp.

void setResourceArchive ( std::string const &  path)
static

Set the archive in which the application will look for resources.

Definition at line 102 of file Application.cpp.


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