casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
casa::TaQLStyle Class Reference

Class with static members defining the TaQL style. More...

#include <TaQLStyle.h>

List of all members.

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

Detailed Description

Class with static members defining the TaQL style.

Intended use:

Internal

Synopsis

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.


Constructor & Destructor Documentation

casa::TaQLStyle::TaQLStyle ( uInt  origin = 1) [inline, explicit]

Default style is Glish and no timings.

Definition at line 62 of file TaQLStyle.h.


Member Function Documentation

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]

Get the various style values.

Definition at line 79 of file TaQLStyle.h.

References itsOrigin.

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.


Member Data Documentation

Definition at line 98 of file TaQLStyle.h.

Referenced by isCOrder().

Definition at line 99 of file TaQLStyle.h.

Referenced by doTiming(), and setTiming().

Definition at line 97 of file TaQLStyle.h.

Referenced by isEndExcl().

Definition at line 96 of file TaQLStyle.h.

Referenced by origin().


The documentation for this class was generated from the following file: