Bayonne2 / Common C++ 2 Framework
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Structures | Public Types | Static Public Member Functions | Data Fields | Static Public Attributes | Static Protected Attributes
ost::Script Class Reference

Generic script class to hold master data types and various useful class encpasulated friend functions. More...

#include <script3.h>

Inheritance diagram for ost::Script:
Inheritance graph
[legend]
Collaboration diagram for ost::Script:
Collaboration graph
[legend]

Data Structures

struct  _array
 
struct  _symbol
 
class  Define
 
class  Fun
 
class  Initial
 
class  InitScript
 
class  Line
 
class  Name
 
class  NamedEvent
 
class  Package
 
class  Test
 

Public Types

enum  scrAccess {
  scrPUBLIC, scrPROTECTED, scrPRIVATE, scrFUNCTION,
  scrLOCAL
}
 
enum  symType {
  symNORMAL = 0, symCONST, symDYNAMIC, symFIFO,
  symSEQUENCE, symSTACK, symCOUNTER, symPOINTER,
  symREF, symARRAY, symASSOC, symINITIAL,
  symNUMBER, symLOCK, symPROPERTY, symORIGINAL,
  symMODIFIED, symTIMER, symBOOL
}
 
typedef bool(ScriptInterp::* Method )(void)
 
typedef const char
*(ScriptCommand::* 
Check )(Line *line, ScriptImage *img)
 
typedef bool(* Cond )(ScriptInterp *interp, const char *v)
 
typedef long(* Function )(long *args, unsigned prec)
 
typedef const char *(* Meta )(ScriptInterp *interp, const char *token)
 
typedef const char *(* Parse )(ScriptCompiler *img, const char *token)
 
typedef void(* Init )(void)
 
typedef enum scrAccess scrAccess
 
typedef enum symType symType
 
typedef struct ost::Script::_symbol Symbol
 
typedef struct ost::Script::_array Array
 

Static Public Member Functions

static bool isScript (Name *scr)
 
static bool isSymbol (const char *id)
 
static bool use (const char *name)
 
static unsigned getIndex (const char *id)
 
static Symbolderef (Symbol *sym)
 
static bool commit (Symbol *sym, const char *value)
 
static bool append (Symbol *sym, const char *value)
 
static bool symindex (Symbol *sym, short offset)
 
static const char * extract (Symbol *sym)
 
static unsigned count (Symbol *sym)
 
static unsigned storage (Symbol *sym)
 
static void clear (Symbol *sym)
 
static void addFunction (const char *name, unsigned count, Function i)
 
static void addConditional (const char *name, Cond test)
 
static bool isPrivate (Name *scr)
 
static bool isFunction (Name *scr)
 

Data Fields

class __EXPORT Line
 
class __EXPORT Name
 

Static Public Attributes

static bool fastStart
 
static bool useBigmem
 
static unsigned fastStepping
 
static unsigned autoStepping
 
static size_t pagesize
 
static unsigned symsize
 
static unsigned symlimit
 
static char decimal
 
static bool use_definitions
 
static bool use_macros
 
static bool use_prefix
 
static bool use_merge
 
static bool use_funcs
 
static const char * plugins
 
static const char * altplugins
 
static const char * access_user
 
static const char * access_pass
 
static const char * access_host
 
static bool exec_funcs
 
static const char * exec_extensions
 
static const char * exec_token
 
static const char * exec_prefix
 
static const char * exit_token
 
static const char * apps_extensions
 
static const char * apps_prefix
 
static const char * etc_prefix
 
static const char * var_prefix
 
static const char * log_prefix
 

Static Protected Attributes

static Testtest
 
static Funifun
 

Detailed Description

Generic script class to hold master data types and various useful class encpasulated friend functions.

Author
David Sugar dyfet.nosp@m.@ost.nosp@m.el.co.nosp@m.m Master script class.

Definition at line 99 of file script3.h.

Member Typedef Documentation

typedef const char*(ScriptCommand::* ost::Script::Check)(Line *line, ScriptImage *img)

Definition at line 106 of file script3.h.

typedef bool(* ost::Script::Cond)(ScriptInterp *interp, const char *v)

Definition at line 107 of file script3.h.

typedef long(* ost::Script::Function)(long *args, unsigned prec)

Definition at line 108 of file script3.h.

typedef void(* ost::Script::Init)(void)

Definition at line 111 of file script3.h.

typedef const char*(* ost::Script::Meta)(ScriptInterp *interp, const char *token)

Definition at line 109 of file script3.h.

typedef bool(ScriptInterp::* ost::Script::Method)(void)

Definition at line 105 of file script3.h.

typedef const char*(* ost::Script::Parse)(ScriptCompiler *img, const char *token)

Definition at line 110 of file script3.h.

Definition at line 121 of file script3.h.

Definition at line 145 of file script3.h.

Member Enumeration Documentation

Enumerator
scrPUBLIC 
scrPROTECTED 
scrPRIVATE 
scrFUNCTION 
scrLOCAL 

Definition at line 113 of file script3.h.

Enumerator
symNORMAL 
symCONST 
symDYNAMIC 
symFIFO 
symSEQUENCE 
symSTACK 
symCOUNTER 
symPOINTER 
symREF 
symARRAY 
symASSOC 
symINITIAL 
symNUMBER 
symLOCK 
symPROPERTY 
symORIGINAL 
symMODIFIED 
symTIMER 
symBOOL 

Definition at line 123 of file script3.h.

Member Function Documentation

static void ost::Script::addConditional ( const char *  name,
Cond  test 
)
static
static void ost::Script::addFunction ( const char *  name,
unsigned  count,
Function  i 
)
static
static bool ost::Script::append ( Symbol sym,
const char *  value 
)
static
static void ost::Script::clear ( Symbol sym)
static
static bool ost::Script::commit ( Symbol sym,
const char *  value 
)
static
static unsigned ost::Script::count ( Symbol sym)
static
static Symbol* ost::Script::deref ( Symbol sym)
static
static const char* ost::Script::extract ( Symbol sym)
static
static unsigned ost::Script::getIndex ( const char *  id)
static
static bool ost::Script::isFunction ( Name scr)
static
static bool ost::Script::isPrivate ( Name scr)
static
static bool ost::Script::isScript ( Name scr)
static
static bool ost::Script::isSymbol ( const char *  id)
static
static unsigned ost::Script::storage ( Symbol sym)
static
static bool ost::Script::symindex ( Symbol sym,
short  offset 
)
static
static bool ost::Script::use ( const char *  name)
static

Field Documentation

const char* ost::Script::access_host
static

Definition at line 285 of file script3.h.

const char* ost::Script::access_pass
static

Definition at line 284 of file script3.h.

const char* ost::Script::access_user
static

Definition at line 283 of file script3.h.

const char* ost::Script::altplugins
static

Definition at line 282 of file script3.h.

const char* ost::Script::apps_extensions
static

Definition at line 291 of file script3.h.

const char* ost::Script::apps_prefix
static

Definition at line 292 of file script3.h.

unsigned ost::Script::autoStepping
static

Definition at line 258 of file script3.h.

char ost::Script::decimal
static

Definition at line 275 of file script3.h.

const char* ost::Script::etc_prefix
static

Definition at line 294 of file script3.h.

const char* ost::Script::exec_extensions
static

Definition at line 287 of file script3.h.

bool ost::Script::exec_funcs
static

Definition at line 286 of file script3.h.

const char* ost::Script::exec_prefix
static

Definition at line 289 of file script3.h.

const char* ost::Script::exec_token
static

Definition at line 288 of file script3.h.

const char* ost::Script::exit_token
static

Definition at line 290 of file script3.h.

bool ost::Script::fastStart
static

Definition at line 255 of file script3.h.

unsigned ost::Script::fastStepping
static

Definition at line 257 of file script3.h.

Fun* ost::Script::ifun
staticprotected

Definition at line 306 of file script3.h.

Definition at line 102 of file script3.h.

const char* ost::Script::log_prefix
static

Definition at line 296 of file script3.h.

Definition at line 103 of file script3.h.

size_t ost::Script::pagesize
static

Definition at line 259 of file script3.h.

const char* ost::Script::plugins
static

Definition at line 281 of file script3.h.

unsigned ost::Script::symlimit
static

Definition at line 261 of file script3.h.

unsigned ost::Script::symsize
static

Definition at line 260 of file script3.h.

Test* ost::Script::test
staticprotected

Definition at line 305 of file script3.h.

bool ost::Script::use_definitions
static

Definition at line 276 of file script3.h.

bool ost::Script::use_funcs
static

Definition at line 280 of file script3.h.

bool ost::Script::use_macros
static

Definition at line 277 of file script3.h.

bool ost::Script::use_merge
static

Definition at line 279 of file script3.h.

bool ost::Script::use_prefix
static

Definition at line 278 of file script3.h.

bool ost::Script::useBigmem
static

Definition at line 256 of file script3.h.

const char* ost::Script::var_prefix
static

Definition at line 295 of file script3.h.


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