28 #ifndef CASA_APPSTATE_H 29 #define CASA_APPSTATE_H 32 #include <casacore/casa/aips.h> 33 #include <casacore/casa/OS/Mutex.h> 60 virtual std::string
resolve(
const std::string &filename)
const;
63 virtual std::list<std::string>
dataPath( )
const {
64 static std::list<std::string> result;
125 static Mutex mutex_p;
127 if ( user_state )
delete user_state;
132 return user_state ? *user_state : default_result;
static AppState & fetch()
virtual std::string resolve(const std::string &filename) const
use the data path to find the filename...
void operator=(AppStateSource const &)
virtual std::list< std::string > dataPath() const
get the list of directories in the data path...
virtual bool initialized() const
static AppState * user_state
Wrapper around a pthreads mutex.
static void initialize(AppState *init)
Exception-safe lock/unlock of a mutex.
Base class for application state.
this file contains all the compiler specific defines
AppStateSource(AppStateSource const &)
Allow configuration of casacore without environment variables.