27#ifndef CASA_RECORDFIELD_H
28#define CASA_RECORDFIELD_H
31#include <casacore/casa/aips.h>
32#include <casacore/casa/Containers/Record.h>
247#ifndef CASACORE_NO_AUTO_TEMPLATES
248#include <casacore/casa/Containers/RecordField.tcc>
Read-Only access to an individual field from a Record.
RORecordFieldPtr(const RecordInterface &record, const RecordFieldId &id)
const String & comment() const
const T & operator*() const
void attachToRecord(const RecordInterface &record, const RecordFieldId &id)
RORecordFieldPtr(const RORecordFieldPtr< T > &other)
RORecordFieldPtr(const RecordInterface &record, Int whichField)
RecordFieldPtr< T > fieldPtr_p
RORecordFieldPtr< T > & operator=(const RORecordFieldPtr< T > &other)
RORecordFieldPtr(const RecordFieldPtr< T > &other)
void attachToRecord(const RecordInterface &record, Int whichField)
static const T * get_typed_ptr(RecordInterface *record, Int fieldNumber)
void detach()
Point to no field in any Record.
RecordFieldPtr(RecordInterface &record, Int whichField)
Attach this field pointer to the given field.
RecordInterface * parent_p
RecordFieldPtr()
This object does not point to any field, i.e.
void attachToRecord(RecordInterface &record, Int whichField)
Change our pointer to the supplied field.
void attachToRecord(RecordInterface &record, const RecordFieldId &)
void define(const T &value)
Store a value in the field using redefinition.
RecordFieldPtr(RecordInterface &record, const RecordFieldId &)
Int fieldNumber() const
Return the fieldnumber of this field.
void setComment(const String &comment)
Set the comment for this field.
const String & comment() const
Get the comment of this field.
T & operator*()
Provide access to the field's value.
Bool isAttached() const
Is this field pointer attached to a valid record? Operations which might cause it to become detached ...
String name() const
Return the name of the field.
const T & operator*() const
String name(const RecordFieldId &) const
Get the name of this field.
String: the storage and methods of handling collections of characters.
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.