mglib

Personal IDL library for M. Galloy

single page | use frames     summary     class     fields     routine details     file attributes

dist_tools/

mg_hasroutine.pro


Determines if a given routine is available to call. This can be useful when there are optional libraries that will be used if available.

Examples

For example, try:

IDL> print, mg_hasroutine('mg_src_root') 1 IDL> print, mg_hasroutine('mg_fake_routine') 0
MG_HASROUTINE can also give basic information about the routine that it found like whether it is a system routine or a function:
IDL> print, mg_hasroutine('mg_hostname', is_system=sys, is_function=func) 1 IDL> print, sys, func 1 1

Routines

top mg_hasroutine

result = mg_hasroutine(routine [, /is_system] [, /is_function])

Determine if a given routine name is available to call.

Return value

1B if a routine is available to call, 0B if not

Parameters

routine in required type=string

routine name to look up

Keywords

is_system out optional type=boolean

set to a named variable to determine if the routine is a system routine

is_function out optional type=boolean

set to a named variable to determine if the routine is a function

File attributes

Modification date: Wed May 14 15:07:14 2014
Lines: 29
Docformat: rst rst
Personal library of Michael Galloy
Contact me if you have enhancement requests or bug fixes.