30 #ifndef CASA_RECORDFIELD_H
31 #define CASA_RECORDFIELD_H
34 #include <casacore/casa/aips.h>
35 #include <casacore/casa/Containers/Record.h>
36 #include <casacore/casa/Utilities/Notice.h>
270 DataType type,
const void*
value)
283 DataType type,
const void*)
289 DataType,
const Table*)
297 return parent->
get_pointer (fieldNumber, TpRecord,
"Record");
303 return parent->
get_pointer (fieldNumber, TpRecord,
"TableRecord");
311 #ifndef CASACORE_NO_AUTO_TEMPLATES
312 #include <casacore/casa/Containers/RecordField.tcc>
abstract base class for notice receptors
Bool isAttached() const
Returns a boolean value telling whether this NoticeTarget is still attached to a NoticeSource or not.
Read-Only access to an individual field from a Record.
RORecordFieldPtr(const RecordInterface &record, const RecordFieldId &id)
RORecordFieldPtr< T > & operator=(const RORecordFieldPtr< T > &other)
const String & comment() 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(const RecordFieldPtr< T > &other)
void attachToRecord(const RecordInterface &record, Int whichField)
const T & operator*() const
T & operator*()
Provide access to the field's value.
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 &)
virtual void notify(const Notice &message)
Not important for users - the mechanism by which field pointers are notified when there is a change i...
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 T & operator*() const
RecordFieldPtr(const RecordFieldPtr< T > &other)
After calling, this and other point to the same field, i.e.
RecordFieldPtr< T > & operator=(const RecordFieldPtr< T > &other)
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 String & comment() const
Get the comment of this field.
String name(const RecordFieldId &) const
Get the name of this field.
virtual void defineDataField(Int whichField, DataType type, const void *value)=0
Define a data field (for RecordFieldPtr).
virtual void * get_pointer(Int whichField, DataType type) const =0
Used by the RecordFieldPtr classes to attach to the correct field.
String: the storage and methods of handling collections of characters.
this file contains all the compiler specific defines
void * attachRecordFieldPtr(RecordInterface *parent, Int fieldNumber, DataType type, const void *)
This function attaches a RecordFieldPtr object.
void defineRecordFieldPtr(RecordInterface *parent, Int fieldNumber, DataType type, const void *value)
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.