Orfeo Toolbox  3.16
Classes | Macros | Functions | Variables
otbApplicationLuaMain.cxx File Reference
#include <itkVersion.h>
#include <itksys/SystemTools.hxx>
#include <itkMultiThreader.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include "lua.h"
#include "lualib.h"
#include "lauxlib.h"
+ Include dependency graph for otbApplicationLuaMain.cxx:

Go to the source code of this file.

Classes

struct  Smain
 

Macros

#define lua_c
 
#define LUA_USE_POSIX
 

Functions

static int collectargs (char **argv, int *pi, int *pv, int *pe)
 
static int docall (lua_State *L, int narg, int clear)
 
static int dofile (lua_State *L, const char *name)
 
static int dolibrary (lua_State *L, const char *name)
 
static int dostring (lua_State *L, const char *s, const char *name)
 
static void dotty (lua_State *L)
 
static const char * get_prompt (lua_State *L, int firstline)
 
static int getargs (lua_State *L, char **argv, int n)
 
static int handle_luainit (lua_State *L)
 
static int handle_script (lua_State *L, char **argv, int n)
 
static int incomplete (lua_State *L, int status)
 
static void l_message (const char *pname, const char *msg)
 
static void laction (int i)
 
static int loadline (lua_State *L)
 
std::string LogConfigFilename ("")
 
static void lstop (lua_State *L, lua_Debug *ar)
 
int luaopen_otbApplication (lua_State *L)
 
int main (int argc, char **argv)
 
static int pmain (lua_State *L)
 
static void print_usage (void)
 
static void print_version (void)
 
static int pushline (lua_State *L, int firstline)
 
static int report (lua_State *L, int status)
 
static int runargs (lua_State *L, char **argv, int n)
 
static int traceback (lua_State *L)
 

Variables

static lua_State * globalL = NULL
 
static const char * progname = LUA_PROGNAME
 

Macro Definition Documentation

#define lua_c

Definition at line 17 of file otbApplicationLuaMain.cxx.

#define LUA_USE_POSIX

Definition at line 20 of file otbApplicationLuaMain.cxx.

Function Documentation

static int collectargs ( char **  argv,
int *  pi,
int *  pv,
int *  pe 
)
static

Definition at line 262 of file otbApplicationLuaMain.cxx.

References NULL.

Referenced by pmain().

static int docall ( lua_State *  L,
int  narg,
int  clear 
)
static

Definition at line 101 of file otbApplicationLuaMain.cxx.

References laction(), and traceback().

Referenced by dofile(), dostring(), dotty(), and handle_script().

static int dofile ( lua_State *  L,
const char *  name 
)
static

Definition at line 139 of file otbApplicationLuaMain.cxx.

References docall(), and report().

Referenced by handle_luainit(), and pmain().

static int dolibrary ( lua_State *  L,
const char *  name 
)
static

Definition at line 151 of file otbApplicationLuaMain.cxx.

References report().

Referenced by runargs().

static int dostring ( lua_State *  L,
const char *  s,
const char *  name 
)
static

Definition at line 145 of file otbApplicationLuaMain.cxx.

References docall(), and report().

Referenced by handle_luainit(), and runargs().

static void dotty ( lua_State *  L)
static

Definition at line 221 of file otbApplicationLuaMain.cxx.

References docall(), l_message(), loadline(), NULL, progname, and report().

Referenced by pmain().

static const char* get_prompt ( lua_State *  L,
int  firstline 
)
static

Definition at line 158 of file otbApplicationLuaMain.cxx.

References NULL.

Referenced by pushline().

static int getargs ( lua_State *  L,
char **  argv,
int  n 
)
static

Definition at line 121 of file otbApplicationLuaMain.cxx.

Referenced by handle_script().

static int handle_luainit ( lua_State *  L)
static

Definition at line 325 of file otbApplicationLuaMain.cxx.

References dofile(), dostring(), and NULL.

Referenced by pmain().

static int handle_script ( lua_State *  L,
char **  argv,
int  n 
)
static

Definition at line 244 of file otbApplicationLuaMain.cxx.

References docall(), getargs(), NULL, and report().

Referenced by pmain().

static int incomplete ( lua_State *  L,
int  status 
)
static

Definition at line 168 of file otbApplicationLuaMain.cxx.

Referenced by loadline().

static void l_message ( const char *  pname,
const char *  msg 
)
static

Definition at line 65 of file otbApplicationLuaMain.cxx.

Referenced by dotty(), main(), and report().

static void laction ( int  i)
static

Definition at line 41 of file otbApplicationLuaMain.cxx.

References globalL, and lstop().

Referenced by docall().

static int loadline ( lua_State *  L)
static

Definition at line 201 of file otbApplicationLuaMain.cxx.

References incomplete(), and pushline().

Referenced by dotty().

std::string LogConfigFilename ( ""  )

Referenced by runargs().

static void lstop ( lua_State *  L,
lua_Debug *  ar 
)
static

Definition at line 34 of file otbApplicationLuaMain.cxx.

References NULL.

Referenced by laction().

int luaopen_otbApplication ( lua_State *  L)

Referenced by pmain().

int main ( int  argc,
char **  argv 
)
static int pmain ( lua_State *  L)
static
static void print_usage ( void  )
static

Definition at line 48 of file otbApplicationLuaMain.cxx.

References progname.

Referenced by pmain().

static void print_version ( void  )
static

Definition at line 115 of file otbApplicationLuaMain.cxx.

References itk::Version::GetITKVersion().

Referenced by pmain().

static int pushline ( lua_State *  L,
int  firstline 
)
static

Definition at line 182 of file otbApplicationLuaMain.cxx.

References get_prompt().

Referenced by loadline().

static int report ( lua_State *  L,
int  status 
)
static

Definition at line 72 of file otbApplicationLuaMain.cxx.

References l_message(), NULL, and progname.

Referenced by dofile(), dolibrary(), dostring(), dotty(), handle_script(), and main().

static int runargs ( lua_State *  L,
char **  argv,
int  n 
)
static

Definition at line 289 of file otbApplicationLuaMain.cxx.

References dolibrary(), dostring(), LogConfigFilename(), and NULL.

Referenced by pmain().

static int traceback ( lua_State *  L)
static

Definition at line 83 of file otbApplicationLuaMain.cxx.

Referenced by docall().

Variable Documentation

lua_State* globalL = NULL
static

Definition at line 30 of file otbApplicationLuaMain.cxx.

Referenced by laction(), and pmain().

const char* progname = LUA_PROGNAME
static

Definition at line 32 of file otbApplicationLuaMain.cxx.

Referenced by dotty(), pmain(), print_usage(), and report().


Generated at Sun May 19 2013 01:02:16 for Orfeo Toolbox with doxygen 1.8.3.1