29 #ifndef SCIMATH_SERIALHELPER_H
30 #define SCIMATH_SERIALHELPER_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/casa/Arrays/ArrayFwd.h>
34 #include <casacore/scimath/Functionals/FunctionFactoryErrors.h>
35 #include <casacore/casa/Containers/Record.h>
Bool isDefined(const String &fieldName) const
Test if a field name exists.
Bool exists(const String &name) const
return True if a field with the given name exists
void get(Float &val, const String &name, uInt index=0) const
static const String gtype[]
void get(Array< Bool > &val, const String &name) const
Get the indexth element of the name field This should be particularly useful for Array objects with o...
void get(Array< String > &val, const String &name) const
void get(Array< Float > &val, const String &name) const
void get(Array< Int > &val, const String &name) const
SerialHelper(const Record &record)
SerialHelper(const SerialHelper &other)
void get(Short &val, const String &name, uInt index=0) const
void get(uChar &val, const String& name, uInt index = 0) const;
void checkFuncType(const String &ftype) const
ensure that the Function type stored in the given record, gr, matches ftype.
void get(String &val, const String &name, uInt index=0) const
void get(Array< Short > &val, const String &name) const
void get(Array<uChar &val, const String& name) const;
void get(Int &val, const String &name, uInt index=0) const
void get(Record &val, const String &name) const
void get(Array< Double > &val, const String &name) const
void get(Double &val, const String &name, uInt index=0) const
Bool getFuncType(String &ftype) const
load the function type name as given in the record's "functype" field into the given String ftype.
void get(Bool &val, const String &name, uInt index=0) const
Get the indexth element of the name field This should be particularly useful for Array objects with o...
void get(Complex &val, const String &name, uInt index=0) const
static const String FUNCTYPE
void get(DComplex &val, const String &name, uInt index=0) const
void get(Array< DComplex > &val, const String &name) const
SerialHelper & operator=(const SerialHelper &other)
void get(Array< Complex > &val, const String &name) const
String: the storage and methods of handling collections of characters.
std::complex< Float > Complex
std::complex< Double > DComplex
this file contains all the compiler specific defines
void getArray(Array< V > &val, int type, const Record &gr, const String &name)
void getArrayVal(V &val, int type, const Record &gr, const String &name, uInt index=0)
bool Bool
Define the standard types used by Casacore.