casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | List of all members
casa::IDL Class Reference

A class to start IDL and execute commands, etc. More...

#include <IDL.h>

Public Member Functions

 IDL (casacore::Int options=0)
 The constructor will start IDL. More...
 
 IDL (const IDL &other)
 Copy constructor. More...
 
IDLoperator= (const IDL &other)
 Assignment operator. More...
 
 ~IDL ()
 The destructor will stop IDL. More...
 
casacore::Bool runCommands (const casacore::Vector< casacore::String > &commands, casacore::Bool log=true)
 Run a sequence of IDL commands. More...
 
casacore::Bool runCommand (const casacore::String &command, casacore::Bool log=true)
 Run a single IDL command. More...
 
casacore::Bool sendArray (const casacore::Array< casacore::Float > &a, casacore::String aname)
 Send an array to IDL and name it. More...
 
casacore::Array< casacore::FloatgetArray (casacore::String aname)
 Get an array from IDL. More...
 
casacore::Float getFloat (casacore::String aname)
 Get an scalar from IDL. More...
 
casacore::Int getInt (casacore::String aname)
 Get an scalar from IDL. More...
 
casacore::Bool setPath (const casacore::Vector< casacore::String > &)
 Set the path inside IDL. More...
 

Protected Member Functions

char * getIDLName (const casacore::String)
 
void ok ()
 

Detailed Description

A class to start IDL and execute commands, etc.

Intended use:

Public interface

Prerequisite

Etymology

IDL is the class for running IDL from inside AIPS++

Synopsis

We can start IDL, execute commands, send and retreive named arrays, etc using this class. The initial use of this class is to allow Pixon processing to be performed using the IDL code.

Example

Motivation

Get access to IDL functionality

Definition at line 76 of file IDL.h.

Constructor & Destructor Documentation

casa::IDL::IDL ( casacore::Int  options = 0)

The constructor will start IDL.

casa::IDL::IDL ( const IDL other)

Copy constructor.

casa::IDL::~IDL ( )

The destructor will stop IDL.

Member Function Documentation

casacore::Array<casacore::Float> casa::IDL::getArray ( casacore::String  aname)

Get an array from IDL.

casacore::Float casa::IDL::getFloat ( casacore::String  aname)

Get an scalar from IDL.

char* casa::IDL::getIDLName ( const casacore::String  )
protected
casacore::Int casa::IDL::getInt ( casacore::String  aname)

Get an scalar from IDL.

void casa::IDL::ok ( )
protected
IDL& casa::IDL::operator= ( const IDL other)

Assignment operator.

casacore::Bool casa::IDL::runCommand ( const casacore::String command,
casacore::Bool  log = true 
)

Run a single IDL command.

casacore::Bool casa::IDL::runCommands ( const casacore::Vector< casacore::String > &  commands,
casacore::Bool  log = true 
)

Run a sequence of IDL commands.

casacore::Bool casa::IDL::sendArray ( const casacore::Array< casacore::Float > &  a,
casacore::String  aname 
)

Send an array to IDL and name it.

casacore::Bool casa::IDL::setPath ( const casacore::Vector< casacore::String > &  )

Set the path inside IDL.


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