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;
off_t time_offset() const
meta_entry_(off_t keys_, int keyl_, off_t vals_, int vall_, off_t times_, int timel_)
off_t value_offset() const
double current_modification_time(struct stat &buf)
static unsigned int creation_count
void put(const std::string &keyword, const std::string &value)
adds the keyword->value mapping
Casarc(const std::string &path)
path is the path to the.casarc (or.aipsrc file)
static void setDefaultPath(const std::string &path)
set and clear the default casarc path (to something other than ~/.casarc)
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...
static const std::list< Casarc * > & list()
return the list of rcfiles that have been loaded
static std::list< Casarc * > * rclist
std::map< std::string, std::string >::const_iterator iterator
std::map< std::string, std::string > rcmap
std::list< int > stale_fds
static std::map< std::string, Casarc * > * filenames
std::list< pid_t > have_lock
static class casacore::CasarcCleanup local_cleanup_object
const std::string & path() const
path to the file that this Casarc mirrors...
static std::string * default_path
static void clearDefaultPath()
static Casarc & instance()
return default casarc file, e.g.
static std::map< ino_t, Casarc * > * rcfiles
singleton Casarcs, (inode->casarc)
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
int lock(lock_mode mode)
returns a file descriptor or -1 on error...