casa
5.7.0-16
|
Everything going into the FlagReport is by value Everything going out of it is by reference. More...
#include <FlagReport.h>
Public Member Functions | |
FlagReport (casacore::String type=casacore::String("none"), casacore::String name=casacore::String(""), casacore::String title=casacore::String(""), casacore::String xlabel=casacore::String(""), casacore::String ylabel=casacore::String("")) | |
FlagReport (casacore::String type, casacore::String name, const casacore::Record &other) | |
TODO : By value. More... | |
FlagReport (const casacore::Record &other) | |
~FlagReport () | |
casacore::Bool | addReport (FlagReport inpReport) |
Add, query and access reports from a "list" type FlagReport. More... | |
casacore::Int | nReport () |
casacore::Bool | accessReport (casacore::Int index, FlagReport &outReport) |
casacore::Bool | addData (casacore::Array< casacore::Float > data) |
Add and query data to plot, for FlagReports of type "plotraster","plotline","plotscatter". More... | |
casacore::Bool | addData (casacore::String plottype, casacore::Vector< casacore::Float > xdata, casacore::Vector< casacore::Float > ydata, casacore::String errortype, casacore::Vector< casacore::Float > error, casacore::String label) |
casacore::Bool addData(casacore::Vector<casacore::Float> xdata,casacore::Vector<casacore::Float> ydata, casacore::String label); More... | |
casacore::Int | nData () |
casacore::String | reportType () |
casacore::Bool | verifyFields () |
Check validity of FlagReport. More... | |
Public Member Functions inherited from casacore::Record | |
Record () | |
Create a record with no fields. More... | |
Record (RecordType type, CheckFieldFunction *=0, const void *checkArgument=0) | |
Create a record with no fields. More... | |
Record (const RecordDesc &description, RecordType type=Fixed, CheckFieldFunction *=0, const void *checkArgument=0) | |
Create a record with the given description. More... | |
Record (const Record &other) | |
Create a copy of other using copy semantics. More... | |
Record (const RecordInterface &other) | |
Create a Record from another type of record using copy semantics. More... | |
Record & | operator= (const Record &other) |
Copy the data in the other record to this record. More... | |
virtual | ~Record () |
Release resources associated with this object. More... | |
virtual RecordInterface * | clone () const |
Make a copy of this object. More... | |
virtual void | assign (const RecordInterface &that) |
Assign that RecordInterface object to this one. More... | |
virtual const String & | comment (const RecordFieldId &) const |
Get the comment for this field. More... | |
virtual void | setComment (const RecordFieldId &, const String &comment) |
Set the comment for this field. More... | |
const RecordDesc & | description () const |
Describes the current structure of this Record. More... | |
virtual void | restructure (const RecordDesc &newDescription, Bool recursive=True) |
Change the structure of this Record to contain the fields in newDescription. More... | |
Bool | conform (const Record &other) const |
Returns True if this and other have the same RecordDesc, other than different names for the fields. More... | |
virtual uInt | nfields () const |
How many fields does this structure have? A convenient synonym for description().nfields() . More... | |
virtual Int | fieldNumber (const String &fieldName) const |
Get the field number from the field name. More... | |
virtual DataType | type (Int whichField) const |
Get the data type of this field. More... | |
void | removeField (const RecordFieldId &) |
Remove a field from the record. More... | |
void | renameField (const String &newName, const RecordFieldId &) |
Rename the given field. More... | |
void | defineRecord (const RecordFieldId &, const Record &value, RecordType type=Variable) |
Define a value for the given field containing a subrecord. More... | |
virtual void | defineRecord (const RecordFieldId &, const RecordInterface &value, RecordType=Variable) |
const Record & | subRecord (const RecordFieldId &) const |
Get the subrecord from the given field. More... | |
Record & | rwSubRecord (const RecordFieldId &) |
virtual const RecordInterface & | asRecord (const RecordFieldId &) const |
virtual RecordInterface & | asrwRecord (const RecordFieldId &) |
virtual ValueHolder | asValueHolder (const RecordFieldId &) const |
Get or define the value as a ValueHolder. More... | |
virtual void | defineFromValueHolder (const RecordFieldId &, const ValueHolder &) |
void | mergeField (const Record &other, const RecordFieldId &, DuplicatesFlag=ThrowOnDuplicates) |
Merge a field from another record into this record. More... | |
void | merge (const Record &other, DuplicatesFlag=ThrowOnDuplicates) |
Merge all fields from the other record into this record. More... | |
void | putRecord (AipsIO &os) const |
Write the Record to an output stream. More... | |
void | getRecord (AipsIO &os) |
Read the Record from an input stream. More... | |
void | putData (AipsIO &os) const |
Put the data of a record. More... | |
void | getData (AipsIO &os, uInt version) |
Read the data of a record. More... | |
virtual void | makeUnique () |
Make a unique record representation (to do copy-on-write in RecordFieldPtr). More... | |
virtual void | print (std::ostream &, Int maxNrValues=25, const String &indent="") const |
Print the contents of the record. More... | |
Public Member Functions inherited from casacore::RecordInterface | |
RecordInterface () | |
The default constructor creates an empty record with a variable structure. More... | |
RecordInterface (RecordType type, CheckFieldFunction *funcPtr, const void *checkArgument) | |
Create a record with no fields. More... | |
RecordInterface (const RecordInterface &other) | |
Copy constructor (copy semantics). More... | |
RecordInterface & | operator= (const RecordInterface &other) |
Assignment (copy semantics). More... | |
virtual | ~RecordInterface () |
Destruct the record. More... | |
Bool | isFixed () const |
Is the Record structure fixed (i.e. More... | |
uInt | size () const |
bool | empty () const |
Is the record empty? More... | |
Int | idToNumber (const RecordFieldId &) const |
Get the field number for the given field id. More... | |
Bool | isDefined (const String &fieldName) const |
Test if a field name exists. More... | |
DataType | dataType (const RecordFieldId &) const |
String | name (const RecordFieldId &) const |
Get the name of this field. More... | |
IPosition | shape (const RecordFieldId &) const |
Get the actual shape of this field. More... | |
RecordDesc | description () const |
Get the description of this record. More... | |
void | define (const RecordFieldId &, Bool value) |
Define a value for the given field. More... | |
void | define (const RecordFieldId &, uChar value) |
void | define (const RecordFieldId &, Short value) |
void | define (const RecordFieldId &, Int value) |
void | define (const RecordFieldId &, uInt value) |
void | define (const RecordFieldId &, Int64 value) |
void | define (const RecordFieldId &, Float value) |
void | define (const RecordFieldId &, Double value) |
void | define (const RecordFieldId &, const Complex &value) |
void | define (const RecordFieldId &, const DComplex &value) |
void | define (const RecordFieldId &, const Char *value) |
void | define (const RecordFieldId &, const String &value) |
void | define (const RecordFieldId &, const Array< Bool > &value, Bool FixedShape=False) |
void | define (const RecordFieldId &, const Array< uChar > &value, Bool FixedShape=False) |
void | define (const RecordFieldId &, const Array< Short > &value, Bool FixedShape=False) |
void | define (const RecordFieldId &, const Array< Int > &value, Bool FixedShape=False) |
void | define (const RecordFieldId &, const Array< uInt > &value, Bool FixedShape=False) |
void | define (const RecordFieldId &, const Array< Int64 > &value, Bool FixedShape=False) |
void | define (const RecordFieldId &, const Array< Float > &value, Bool FixedShape=False) |
void | define (const RecordFieldId &, const Array< Double > &value, Bool FixedShape=False) |
void | define (const RecordFieldId &, const Array< Complex > &value, Bool FixedShape=False) |
void | define (const RecordFieldId &, const Array< DComplex > &value, Bool FixedShape=False) |
void | define (const RecordFieldId &, const Array< String > &value, Bool FixedShape=False) |
void | get (const RecordFieldId &, Bool &value) const |
Get the value of the given field. More... | |
void | get (const RecordFieldId &, uChar &value) const |
void | get (const RecordFieldId &, Short &value) const |
void | get (const RecordFieldId &, Int &value) const |
void | get (const RecordFieldId &, uInt &value) const |
void | get (const RecordFieldId &, Int64 &value) const |
void | get (const RecordFieldId &, Float &value) const |
void | get (const RecordFieldId &, Double &value) const |
void | get (const RecordFieldId &, Complex &value) const |
void | get (const RecordFieldId &, DComplex &value) const |
void | get (const RecordFieldId &, String &value) const |
void | get (const RecordFieldId &, Array< Bool > &value) const |
void | get (const RecordFieldId &, Array< uChar > &value) const |
void | get (const RecordFieldId &, Array< Short > &value) const |
void | get (const RecordFieldId &, Array< Int > &value) const |
void | get (const RecordFieldId &, Array< uInt > &value) const |
void | get (const RecordFieldId &, Array< Int64 > &value) const |
void | get (const RecordFieldId &, Array< Float > &value) const |
void | get (const RecordFieldId &, Array< Double > &value) const |
void | get (const RecordFieldId &, Array< Complex > &value) const |
void | get (const RecordFieldId &, Array< DComplex > &value) const |
void | get (const RecordFieldId &, Array< String > &value) const |
Bool | asBool (const RecordFieldId &) const |
The following functions get the value based on field name or number. More... | |
uChar | asuChar (const RecordFieldId &) const |
Short | asShort (const RecordFieldId &) const |
Int | asInt (const RecordFieldId &) const |
uInt | asuInt (const RecordFieldId &) const |
Int64 | asInt64 (const RecordFieldId &) const |
Float | asFloat (const RecordFieldId &) const |
Double | asDouble (const RecordFieldId &) const |
Complex | asComplex (const RecordFieldId &) const |
DComplex | asDComplex (const RecordFieldId &) const |
const String & | asString (const RecordFieldId &) const |
const Array< Bool > & | asArrayBool (const RecordFieldId &) const |
const Array< uChar > & | asArrayuChar (const RecordFieldId &) const |
const Array< Short > & | asArrayShort (const RecordFieldId &) const |
const Array< Int > & | asArrayInt (const RecordFieldId &) const |
const Array< uInt > & | asArrayuInt (const RecordFieldId &) const |
const Array< Int64 > & | asArrayInt64 (const RecordFieldId &) const |
const Array< Float > & | asArrayFloat (const RecordFieldId &) const |
const Array< Double > & | asArrayDouble (const RecordFieldId &) const |
const Array< Complex > & | asArrayComplex (const RecordFieldId &) const |
const Array< DComplex > & | asArrayDComplex (const RecordFieldId &) const |
const Array< String > & | asArrayString (const RecordFieldId &) const |
Array< Bool > | toArrayBool (const RecordFieldId &) const |
Get an array while promoting the data as needed. More... | |
Array< uChar > | toArrayuChar (const RecordFieldId &) const |
Array< Short > | toArrayShort (const RecordFieldId &) const |
Array< Int > | toArrayInt (const RecordFieldId &) const |
Array< uInt > | toArrayuInt (const RecordFieldId &) const |
Array< Int64 > | toArrayInt64 (const RecordFieldId &) const |
Array< Float > | toArrayFloat (const RecordFieldId &) const |
Array< Double > | toArrayDouble (const RecordFieldId &) const |
Array< Complex > | toArrayComplex (const RecordFieldId &) const |
Array< DComplex > | toArrayDComplex (const RecordFieldId &) const |
Array< String > | toArrayString (const RecordFieldId &) const |
void | toArray (const RecordFieldId &id, Array< Bool > &array) const |
void | toArray (const RecordFieldId &id, Array< uChar > &array) const |
void | toArray (const RecordFieldId &id, Array< Short > &array) const |
void | toArray (const RecordFieldId &id, Array< Int > &array) const |
void | toArray (const RecordFieldId &id, Array< uInt > &array) const |
void | toArray (const RecordFieldId &id, Array< Int64 > &array) const |
void | toArray (const RecordFieldId &id, Array< Float > &array) const |
void | toArray (const RecordFieldId &id, Array< Double > &array) const |
void | toArray (const RecordFieldId &id, Array< Complex > &array) const |
void | toArray (const RecordFieldId &id, Array< DComplex > &array) const |
void | toArray (const RecordFieldId &id, Array< String > &array) const |
Float | asfloat (const RecordFieldId &) const |
Get value based on field name or number. More... | |
Double | asdouble (const RecordFieldId &) const |
const Array< Float > & | asArrayfloat (const RecordFieldId &) const |
const Array< Double > & | asArraydouble (const RecordFieldId &) const |
Public Member Functions inherited from casacore::NoticeSource | |
NoticeSource () | |
virtual | ~NoticeSource () |
void | notify (const Notice ¬e) |
Sends the note to all NoticeTarget s in the target list. More... | |
Private Attributes | |
casacore::LogIO | logger_p |
Additional Inherited Members | |
Public Types inherited from casacore::RecordInterface | |
enum | RecordType { Fixed, Variable } |
Define the flag telling if a Record has a fixed or variable structure. More... | |
enum | DuplicatesFlag { RenameDuplicates, SkipDuplicates, OverwriteDuplicates, ThrowOnDuplicates } |
Define the Duplicates flag for the function merge in the various record classes. More... | |
typedef Bool | CheckFieldFunction (const String &fieldName, DataType dataType, const void *extraArgument, String &message) |
Define the signature of the add callback function. More... | |
Protected Member Functions inherited from casacore::Record | |
virtual void * | get_pointer (Int whichField, DataType type) const |
Used by the RecordField classes to attach in a type-safe way to the correct field. More... | |
virtual void * | get_pointer (Int whichField, DataType type, const String &recordType) const |
const RecordRep & | ref () const |
Return a const reference to the underlying RecordRep. More... | |
RecordRep & | rwRef () |
Return a non-const reference to the underlying RecordRep. More... | |
virtual void | addDataField (const String &name, DataType type, const IPosition &shape, Bool fixedShape, const void *value) |
Add a field to the record. More... | |
virtual void | defineDataField (Int whichField, DataType type, const void *value) |
Define a value in the given field. More... | |
Protected Member Functions inherited from casacore::RecordInterface | |
void | throwIfFixed () const |
Check if the Record has a non-fixed structure. More... | |
void | checkName (const String &fieldName, DataType type) const |
Check if the new field name is correct. More... | |
RecordType & | recordType () |
Give access to the RecordType flag (write-access is needed when a record is read back). More... | |
RecordType | recordType () const |
Int | newIdToNumber (const RecordFieldId &) const |
Get the field number for the given field id. More... | |
void | defineField (const RecordFieldId &, DataType type, const void *value) |
Add a scalar field with the given type and value. More... | |
void | defineField (const RecordFieldId &, DataType type, const IPosition &shape, Bool fixedShape, const void *value) |
Add an array field with the given type, shape and value. More... | |
Everything going into the FlagReport is by value Everything going out of it is by reference.
Definition at line 40 of file FlagReport.h.
casa::FlagReport::FlagReport | ( | casacore::String | type = casacore::String("none") , |
casacore::String | name = casacore::String("") , |
||
casacore::String | title = casacore::String("") , |
||
casacore::String | xlabel = casacore::String("") , |
||
casacore::String | ylabel = casacore::String("") |
||
) |
casa::FlagReport::FlagReport | ( | casacore::String | type, |
casacore::String | name, | ||
const casacore::Record & | other | ||
) |
TODO : By value.
Change to by-reference
casa::FlagReport::FlagReport | ( | const casacore::Record & | other | ) |
casa::FlagReport::~FlagReport | ( | ) |
casacore::Bool casa::FlagReport::accessReport | ( | casacore::Int | index, |
FlagReport & | outReport | ||
) |
casacore::Bool casa::FlagReport::addData | ( | casacore::Array< casacore::Float > | data | ) |
Add and query data to plot, for FlagReports of type "plotraster","plotline","plotscatter".
casacore::Bool casa::FlagReport::addData | ( | casacore::String | plottype, |
casacore::Vector< casacore::Float > | xdata, | ||
casacore::Vector< casacore::Float > | ydata, | ||
casacore::String | errortype, | ||
casacore::Vector< casacore::Float > | error, | ||
casacore::String | label | ||
) |
casacore::Bool addData(casacore::Vector<casacore::Float> xdata,casacore::Vector<casacore::Float> ydata, casacore::String label);
casacore::Bool casa::FlagReport::addReport | ( | FlagReport | inpReport | ) |
Add, query and access reports from a "list" type FlagReport.
casacore::Int casa::FlagReport::nData | ( | ) |
casacore::Int casa::FlagReport::nReport | ( | ) |
casacore::String casa::FlagReport::reportType | ( | ) |
casacore::Bool casa::FlagReport::verifyFields | ( | ) |
Check validity of FlagReport.
|
private |
Definition at line 69 of file FlagReport.h.