#include <Casarc.h>
|
| typedef std::map< std::string, std::string >::const_iterator | iterator |
| |
|
| void | put (const std::string &keyword, const std::string &value) |
| | adds the keyword->value mapping More...
|
| |
| std::string | get (const std::string &keyword) |
| | retrieves the mapping for keyword (or "" if the mapping is not defined) More...
|
| |
| 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 otherwise) More...
|
| |
| size_t | size () const |
| |
| const std::string & | path () const |
| | path to the file that this Casarc mirrors... More...
|
| |
| iterator | begin () |
| |
| iterator | end () |
| |
Definition at line 40 of file Casarc.h.
§ iterator
§ lock_mode
| Enumerator |
|---|
| READ | |
| READ_WRITE | |
| WRITE | |
| APPEND | |
Definition at line 114 of file Casarc.h.
§ Casarc()
| casacore::Casarc::Casarc |
( |
const std::string & |
path | ) |
|
|
private |
path is the path to the .casarc (or .aipsrc file)
§ ~Casarc()
| casacore::Casarc::~Casarc |
( |
| ) |
|
|
inlineprivate |
§ begin()
§ clearDefaultPath()
| static void casacore::Casarc::clearDefaultPath |
( |
| ) |
|
|
static |
§ close()
| void casacore::Casarc::close |
( |
int |
| ) |
|
|
private |
§ current_modification_time()
| double casacore::Casarc::current_modification_time |
( |
struct stat & |
buf | ) |
|
|
private |
§ end()
§ get() [1/2]
| std::string casacore::Casarc::get |
( |
const std::string & |
keyword | ) |
|
retrieves the mapping for keyword (or "" if the mapping is not defined)
§ get() [2/2]
| bool casacore::Casarc::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 otherwise)
§ instance() [1/2]
| static Casarc& casacore::Casarc::instance |
( |
| ) |
|
|
static |
return default casarc file, e.g.
~/.casarc
§ instance() [2/2]
| static Casarc& casacore::Casarc::instance |
( |
const std::string & |
path | ) |
|
|
static |
return a casarc object attached to a particular file
§ list()
| static const std::list<Casarc*>& casacore::Casarc::list |
( |
| ) |
|
|
static |
return the list of rcfiles that have been loaded
§ lock()
returns a file descriptor or -1 on error...
§ path()
| const std::string& casacore::Casarc::path |
( |
| ) |
const |
|
inline |
§ put()
| void casacore::Casarc::put |
( |
const std::string & |
keyword, |
|
|
const std::string & |
value |
|
) |
| |
adds the keyword->value mapping
§ read_file()
| void casacore::Casarc::read_file |
( |
| ) |
|
|
private |
§ setDefaultPath()
| static void casacore::Casarc::setDefaultPath |
( |
const std::string & |
path | ) |
|
|
static |
set and clear the default casarc path (to something other than ~/.casarc)
§ shutdown()
| static void casacore::Casarc::shutdown |
( |
| ) |
|
|
staticprivate |
§ size()
| size_t casacore::Casarc::size |
( |
| ) |
const |
§ startup()
| static void casacore::Casarc::startup |
( |
| ) |
|
|
staticprivate |
§ sync()
| void casacore::Casarc::sync |
( |
| ) |
|
|
private |
§ unlock()
| void casacore::Casarc::unlock |
( |
int |
fd | ) |
|
|
private |
§ CasarcCleanup
§ default_path
| std::string* casacore::Casarc::default_path |
|
staticprivate |
§ filename
| std::string casacore::Casarc::filename |
|
private |
§ filenames
| std::map<std::string,Casarc*>* casacore::Casarc::filenames |
|
staticprivate |
§ have_lock
| std::list<pid_t> casacore::Casarc::have_lock |
|
private |
§ initialized
| bool casacore::Casarc::initialized |
|
staticprivate |
§ inode
| ino_t casacore::Casarc::inode |
|
private |
§ mapped_file
| char* casacore::Casarc::mapped_file |
|
private |
§ mapped_file_size
| off_t casacore::Casarc::mapped_file_size |
|
private |
§ rcfiles
| std::map<ino_t,Casarc*>* casacore::Casarc::rcfiles |
|
staticprivate |
singleton Casarcs, (inode->casarc)
Definition at line 135 of file Casarc.h.
§ rclist
| std::list<Casarc*>* casacore::Casarc::rclist |
|
staticprivate |
§ rcmap
| std::map<std::string,std::string> casacore::Casarc::rcmap |
|
private |
§ rcmetamap
| std::map<std::string,meta_entry_> casacore::Casarc::rcmetamap |
|
private |
this is broken off separate from the rcmap to allow the rcmap to be used for iteration by users of this class...
Definition at line 128 of file Casarc.h.
§ stale_fds
| std::list<int> casacore::Casarc::stale_fds |
|
private |
§ timestamp
| double casacore::Casarc::timestamp |
|
private |
The documentation for this class was generated from the following file: