DOquanta.h

Classes

quanta -- This class gives Glish to Quantity connection (full description)

class quanta : public ApplicationObject

Interface

Public Members
quanta()
quanta(const quanta &other)
quanta &operator=(const quanta &other)
~quanta()
static GlishRecord mapit(const String &tp)
static Quantity constants(const String &in)
static Int makeFormT(const GlishArray &in)
static Int makeFormA(const GlishArray &in)
virtual String className() const
virtual Vector<String> methods() const
virtual MethodResult runMethod(uInt which, ParameterSet &parameters, Bool runMethod)
virtual Vector<String> noTraceMethods() const
Private Members
static void mapInsert(GlishRecord &out, const String &type, const map<String, UnitName> &mp)

Description

Review Status

Date Reviewed:
yyyy/mm/dd

Prerequisite

Etymology

Distributed Object and quanta

Synopsis

The class makes the connection between Units and Quantity classes and the Glish distributed object system. It provides a series of Glish callable methods. See Aips++ Note 197 for details.
The parameter interface between Glish and the distributed objects knows about Quantities, and can convert them. Operations supported are mathematical (+-*/), comparison and conversion related; both in CLI and a GUI related methods.
Caution The class name is quanta, the file name DOquanta, with the actual distributed object in quanta.cc, quanta.g

Example

For an example of the class use, see the quanta.g application.

Motivation

To provide a direct user interface between the user and Quanta related calculations and conversions.

To Do

Member Description

quanta()

quanta(const quanta &other)

quanta &operator=(const quanta &other)

~quanta()

static GlishRecord mapit(const String &tp)

List known units

static Quantity constants(const String &in)

Give a constant named by the string

static Int makeFormT(const GlishArray &in)

Make time format from String array

static Int makeFormA(const GlishArray &in)

Make angle format from String array

virtual String className() const
virtual Vector<String> methods() const
virtual MethodResult runMethod(uInt which, ParameterSet &parameters, Bool runMethod)

Required Tasking methods

virtual Vector<String> noTraceMethods() const

Stop tracing

static void mapInsert(GlishRecord &out, const String &type, const map<String, UnitName> &mp)

Add a unit name entry to table