29 #ifndef SCIMATH_SERIALHELPER_H 30 #define SCIMATH_SERIALHELPER_H 32 #include <casacore/casa/aips.h> 33 #include <casacore/scimath/Functionals/FunctionFactoryErrors.h> 34 #include <casacore/casa/Containers/Record.h> 38 template<
class T>
class Array;
41 void getArrayVal(V &val,
int type,
const Record& gr,
42 const String& name,
uInt index=0);
45 void getArray(Array<V> &val,
int type,
const Record& gr,
146 void get(
Int &val,
const String& name,
uInt index = 0)
const;
std::complex< Float > Complex
static const String gtype[]
SerialHelper(const Record &record)
Bool getFuncType(String &ftype) const
load the function type name as given in the record's "functype" field into the given String ftype...
SerialHelper(const SerialHelper &other)
SerialHelper & operator=(const SerialHelper &other)
std::complex< Double > DComplex
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
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
void checkFuncType(const String &ftype) const
ensure that the Function type stored in the given record, gr, matches ftype.
void getArrayVal(V &val, int type, const Record &gr, const String &name, uInt index=0)
static const String FUNCTYPE
String: the storage and methods of handling collections of characters.
void getArray(Array< V > &val, int type, const Record &gr, const String &name)
this file contains all the compiler specific defines