28 #ifndef CASA_JSONKVMAP_H
29 #define CASA_JSONKVMAP_H
77 typedef std::map<String,JsonValue>::iterator
iterator;
92 {
return find(name) !=
end(); }
112 void show (ostream&)
const;
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
Elements::const_iterator const_iterator
JsonKVMap & operator=(const JsonKVMap &that)
Assignment (copy semantics)
Bool getBool(const String &name, Bool defVal) const
double getDouble(const String &name, double defVal) const
Int64 getInt(const String &name, Int64 defVal) const
DComplex getDComplex(const String &name, const DComplex &defVal) const
ABSTRACT CLASSES Abstract class for colors Any implementation of color should be able to provide a hexadecimal form of the if a human readable name(i.e."black").In many places throughout the plotter
const_iterator end() const
Record toRecord() const
Convert the map to a Record.
Bool isDefined(const String &name) const
Is a key defined?
std::map< String, JsonValue >::const_iterator const_iterator
Define the iterator types.
Class to hold a collection of JSON key:value pairs.
std::complex< Double > DComplex
std::map< String, JsonValue >::iterator iterator
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
Class to hold any JSON value.
const String & getString(const String &name, const String &defVal) const
friend ostream & operator<<(ostream &, const JsonKVMap &)
void show(ostream &) const
String: the storage and methods of handling collections of characters.
JsonKVMap()
Construct an empty map.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.