31 #include <casacore/casa/aips.h>
32 #include <sys/types.h>
46 typedef std::map<std::string,std::string>::const_iterator
iterator;
59 static const std::list<Casarc*> &
list( );
62 void put(
const std::string &keyword,
const std::string &
value );
65 std::string
get(
const std::string &keyword );
69 bool get(
const std::string &keyword, std::string &
value );
83 meta_entry_( off_t keys_,
int keyl_, off_t vals_,
int vall_, off_t times_,
int timel_ ) :
125 std::map<std::string,std::string>
rcmap;
static unsigned int creation_count
meta_entry_(off_t keys_, int keyl_, off_t vals_, int vall_, off_t times_, int timel_)
off_t time_offset() const
off_t value_offset() const
Casarc(const std::string &path)
path is the path to the.casarc (or.aipsrc file)
bool get(const std::string &keyword, std::string &value)
retrieves the mapping for keyword in value (and returns true if the mapping is defined or false other...
static Casarc & instance()
return default casarc file, e.g.
std::map< std::string, meta_entry_ > rcmetamap
this is broken off separate from the rcmap to allow the rcmap to be used for iteration by users of th...
void put(const std::string &keyword, const std::string &value)
adds the keyword->value mapping
const std::string & path() const
path to the file that this Casarc mirrors...
std::map< std::string, std::string >::const_iterator iterator
static std::string * default_path
static std::map< ino_t, Casarc * > * rcfiles
singleton Casarcs, (inode->casarc)
static void setDefaultPath(const std::string &path)
set and clear the default casarc path (to something other than ~/.casarc)
int lock(lock_mode mode)
returns a file descriptor or -1 on error...
std::list< int > stale_fds
std::string get(const std::string &keyword)
retrieves the mapping for keyword (or "" if the mapping is not defined)
static void clearDefaultPath()
static Casarc & instance(const std::string &path)
return a casarc object attached to a particular file
std::map< std::string, std::string > rcmap
static std::list< Casarc * > * rclist
static std::map< std::string, Casarc * > * filenames
static const std::list< Casarc * > & list()
return the list of rcfiles that have been loaded
double current_modification_time(struct stat &buf)
std::list< pid_t > have_lock
this file contains all the compiler specific defines
static class casacore::CasarcCleanup local_cleanup_object
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.