IsisDlm  Version 0.2
IsisDlm.cpp File Reference
#include <cstdio>
#include <iostream>
#include <fstream>
#include <string>
#include <list>
#include <vector>
#include "Idl.h"
#include "IdlDlm.h"
#include "IdlRtnDef.h"
#include "IdlUtilities.h"
#include "FileRepository.h"
#include "IsisDlm.h"
#include "IsisDlmRoutines.h"
Include dependency graph for IsisDlm.cpp:

Macros

#define MAKE_INIT_LIST

Functions

int IsisTerminate (void)
int IdlInit (IdlDlm &idl)

Macro Definition Documentation

#define MAKE_INIT_LIST

Function Documentation

int IdlInit ( IdlDlm &  idl)

IDL DLM initialization routine This routine is called precisely when the first routine in the ISIS DLM is called from the IDL calling environment. It performs the following operations:

  • Names the DLM - in this case its Isis
  • Registers all the functions defined in the IsisDlm.dlm file
  • Registers the exit hander, IsisTerminate in this case

One unfortunate consequence of the IDL DLM is that you must be very careful should the routines defined in the DLM description file IsisDlm.dlm. The IdlDlm toolkit will disable all routines in this DLM should the initialization fail.

Parameters
idlThe Idl DLM interface system
Returns
0 if all registered OK, else then number of routines that failed

References IsisTerminate().

Here is the call graph for this function:

int IsisTerminate ( void  )

Exit routine for IsisDlm internals IsisTerminate will be registered as an exit handler with the IdlDlm toolkit. This routine is called once and only once precisely when IDL is exiting. This is your last chance to do any clean up that is left prior to application termination.

References ISISDLM::FileRepository::Purge().

Referenced by IdlInit().

Here is the call graph for this function: