casa
$Rev:20696$
|
Class with static members defining the TaQL style. More...
#include <TaQLStyle.h>
Public Member Functions | |
TaQLStyle (uInt origin=1) | |
Default style is Glish and no timings. | |
void | reset () |
Reset to the default Glish style and no timings. | |
void | set (const String &value) |
Set the style according to the (case-insensitive) value. | |
uInt | origin () const |
Get the various style values. | |
Bool | isEndExcl () const |
Bool | isCOrder () const |
void | setTiming (Bool doTiming) |
Set if timing needs to be done. | |
Bool | doTiming () const |
Should timing be done? | |
Private Attributes | |
uInt | itsOrigin |
Bool | itsEndExcl |
Bool | itsCOrder |
Bool | itsDoTiming |
Class with static members defining the TaQL style.
Internal
Originally TaQL was developed to use the Glish style of indexing. This meant 1-based indices, axes in Fortran order, and end is inclusive in start:end. On the other hand the Python style is the opposite. In order to let the user choose between styles, one can define the style in a TaQL command. The default style is Glish.
The class is also used to tell the TaQL execution engine if timings of the various parts of the TaQL command need to be done.
Definition at line 58 of file TaQLStyle.h.
casa::TaQLStyle::TaQLStyle | ( | uInt | origin = 1 | ) | [inline, explicit] |
Default style is Glish and no timings.
Definition at line 62 of file TaQLStyle.h.
Bool casa::TaQLStyle::doTiming | ( | ) | const [inline] |
Should timing be done?
Definition at line 92 of file TaQLStyle.h.
References itsDoTiming.
Referenced by setTiming().
Bool casa::TaQLStyle::isCOrder | ( | ) | const [inline] |
Definition at line 83 of file TaQLStyle.h.
References itsCOrder.
Bool casa::TaQLStyle::isEndExcl | ( | ) | const [inline] |
Definition at line 81 of file TaQLStyle.h.
References itsEndExcl.
uInt casa::TaQLStyle::origin | ( | ) | const [inline] |
void casa::TaQLStyle::reset | ( | ) |
Reset to the default Glish style and no timings.
void casa::TaQLStyle::set | ( | const String & | value | ) |
Set the style according to the (case-insensitive) value.
Possible values are Glish, Python, Base0, Base1, FortranOrder, Corder, InclEnd, and ExclEnd.
void casa::TaQLStyle::setTiming | ( | Bool | doTiming | ) | [inline] |
Set if timing needs to be done.
Definition at line 88 of file TaQLStyle.h.
References doTiming(), and itsDoTiming.
Bool casa::TaQLStyle::itsCOrder [private] |
Definition at line 98 of file TaQLStyle.h.
Referenced by isCOrder().
Bool casa::TaQLStyle::itsDoTiming [private] |
Definition at line 99 of file TaQLStyle.h.
Referenced by doTiming(), and setTiming().
Bool casa::TaQLStyle::itsEndExcl [private] |
Definition at line 97 of file TaQLStyle.h.
Referenced by isEndExcl().
uInt casa::TaQLStyle::itsOrigin [private] |
Definition at line 96 of file TaQLStyle.h.
Referenced by origin().