28 #ifndef CASA_JSONKVMAP_H
29 #define CASA_JSONKVMAP_H
31 #include <casacore/casa/Json/JsonValue.h>
77 typedef std::map<String,JsonValue>::iterator
iterator;
92 {
return find(name) != end(); }
JsonKVMap(const JsonKVMap &that)
Copy constructor (copy semantics)
JsonKVMap()
Construct an empty map.
const JsonValue & get(const String &name) const
Get the value of a key.
void show(ostream &) const
Bool getBool(const String &name, Bool defVal) const
std::map< String, JsonValue >::iterator iterator
friend ostream & operator<<(ostream &, const JsonKVMap &)
DComplex getDComplex(const String &name, const DComplex &defVal) const
std::map< String, JsonValue >::const_iterator const_iterator
Define the iterator types.
double getDouble(const String &name, double defVal) const
Bool isDefined(const String &name) const
Is a key defined?
JsonKVMap & operator=(const JsonKVMap &that)
Assignment (copy semantics)
Record toRecord() const
Convert the map to a Record.
const String & getString(const String &name, const String &defVal) const
Int64 getInt(const String &name, Int64 defVal) const
String: the storage and methods of handling collections of characters.
std::complex< Double > DComplex
this file contains all the compiler specific defines
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
bool Bool
Define the standard types used by Casacore.