This class is used for registering scripts with an external registry.
More...
#include <script3.h>
|
enum | scrAccess {
scrPUBLIC,
scrPROTECTED,
scrPRIVATE,
scrFUNCTION,
scrLOCAL
} |
|
typedef enum scrAccess | scrAccess |
|
enum | symType {
symNORMAL = 0,
symCONST,
symDYNAMIC,
symFIFO,
symSEQUENCE,
symSTACK,
symCOUNTER,
symPOINTER,
symREF,
symARRAY,
symASSOC,
symINITIAL,
symNUMBER,
symLOCK,
symPROPERTY,
symORIGINAL,
symMODIFIED,
symTIMER,
symBOOL
} |
|
typedef enum symType | symType |
|
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 struct ost::Script::_symbol | Symbol |
|
typedef struct ost::Script::_array | Array |
|
|
void | setTimer (timeout_t timeout=0) |
| Set a new start time for the object based on when this call is made and optionally activate the timer for a specified number of milliseconds. More...
|
|
void | incTimer (timeout_t timeout) |
| Set a timeout based on the current time reference value either from object creation or the last setTimer(). More...
|
|
void | decTimer (timeout_t timeout) |
| Adjust a timeout based on the current time reference value either from object creation or the last setTimer(). More...
|
|
void | sleepTimer (void) |
| Sleep until the current timer expires. More...
|
|
void | endTimer (void) |
| This is used to "disable" the service thread from expiring the timer object. More...
|
|
timeout_t | getTimer (void) const |
| This is used by service threads to determine how much time remains before the timer expires based on a timeout specified in setTimer() or incTimer(). More...
|
|
timeout_t | getElapsed (void) const |
| This is used to determine how much time has elapsed since a timer port setTimer benchmark time was initially set. More...
|
|
This class is used for registering scripts with an external registry.
Sometimes this is used as a base class for a more complete one.
- Author
- David Sugar dyfet.nosp@m.@ost.nosp@m.el.co.nosp@m.m Registry for script objects.
Definition at line 1676 of file script3.h.
typedef bool(* ost::Script::Cond)(ScriptInterp *interp, const char *v) |
|
inherited |
typedef long(* ost::Script::Function)(long *args, unsigned prec) |
|
inherited |
typedef void(* ost::Script::Init)(void) |
|
inherited |
typedef const char*(* ost::Script::Meta)(ScriptInterp *interp, const char *token) |
|
inherited |
typedef bool(ScriptInterp::* ost::Script::Method)(void) |
|
inherited |
typedef const char*(* ost::Script::Parse)(ScriptCompiler *img, const char *token) |
|
inherited |
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.
static void ost::Script::addConditional |
( |
const char * |
name, |
|
|
Cond |
test |
|
) |
| |
|
staticinherited |
static void ost::Script::addFunction |
( |
const char * |
name, |
|
|
unsigned |
count, |
|
|
Function |
i |
|
) |
| |
|
staticinherited |
static bool ost::Script::append |
( |
Symbol * |
sym, |
|
|
const char * |
value |
|
) |
| |
|
staticinherited |
static void ost::Script::clear |
( |
Symbol * |
sym | ) |
|
|
staticinherited |
static bool ost::Script::commit |
( |
Symbol * |
sym, |
|
|
const char * |
value |
|
) |
| |
|
staticinherited |
static unsigned ost::Script::count |
( |
Symbol * |
sym | ) |
|
|
staticinherited |
void TimerPort::decTimer |
( |
timeout_t |
timeout | ) |
|
|
inherited |
Adjust a timeout based on the current time reference value either from object creation or the last setTimer().
This reference can be used to time synchronize realtime data over specified intervals and force expiration when a new frame should be released in a synchronized manner.
- Parameters
-
timeout | delay in milliseconds from reference. |
void TimerPort::endTimer |
( |
void |
| ) |
|
|
inherited |
This is used to "disable" the service thread from expiring the timer object.
It does not effect the reference time from either creation or a setTimer().
static const char* ost::Script::extract |
( |
Symbol * |
sym | ) |
|
|
staticinherited |
timeout_t TimerPort::getElapsed |
( |
void |
| ) |
const |
|
inherited |
This is used to determine how much time has elapsed since a timer port setTimer benchmark time was initially set.
This allows one to use setTimer() to set the timer to the current time and then measure elapsed time from that point forward.
return time elapsed in milliseconds, or TIMEOUT_INF if inactive.
static unsigned ost::Script::getIndex |
( |
const char * |
id | ) |
|
|
staticinherited |
This is used by service threads to determine how much time remains before the timer expires based on a timeout specified in setTimer() or incTimer().
It can also be called after setting a timeout with incTimer() to see if the current timeout has already expired and hence that the application is already delayed and should skip frame(s).
return time remaining in milliseconds, or TIMEOUT_INF if inactive.
void TimerPort::incTimer |
( |
timeout_t |
timeout | ) |
|
|
inherited |
Set a timeout based on the current time reference value either from object creation or the last setTimer().
This reference can be used to time synchronize realtime data over specified intervals and force expiration when a new frame should be released in a synchronized manner.
- Parameters
-
timeout | delay in milliseconds from reference. |
static bool ost::Script::isFunction |
( |
Name * |
scr | ) |
|
|
staticinherited |
static bool ost::Script::isPrivate |
( |
Name * |
scr | ) |
|
|
staticinherited |
static bool ost::Script::isScript |
( |
Name * |
scr | ) |
|
|
staticinherited |
static bool ost::Script::isSymbol |
( |
const char * |
id | ) |
|
|
staticinherited |
void TimerPort::setTimer |
( |
timeout_t |
timeout = 0 | ) |
|
|
inherited |
Set a new start time for the object based on when this call is made and optionally activate the timer for a specified number of milliseconds.
This can be used to set the starting time of a realtime session.
- Parameters
-
timeout | delay in milliseconds from "now" |
void TimerPort::sleepTimer |
( |
void |
| ) |
|
|
inherited |
Sleep until the current timer expires.
This is useful in time syncing realtime periodic tasks.
static unsigned ost::Script::storage |
( |
Symbol * |
sym | ) |
|
|
staticinherited |
static bool ost::Script::symindex |
( |
Symbol * |
sym, |
|
|
short |
offset |
|
) |
| |
|
staticinherited |
static bool ost::Script::use |
( |
const char * |
name | ) |
|
|
staticinherited |
const char* ost::Script::access_host |
|
staticinherited |
const char* ost::Script::access_pass |
|
staticinherited |
const char* ost::Script::access_user |
|
staticinherited |
const char* ost::Script::altplugins |
|
staticinherited |
const char* ost::Script::apps_extensions |
|
staticinherited |
const char* ost::Script::apps_prefix |
|
staticinherited |
unsigned ost::Script::autoStepping |
|
staticinherited |
char ost::Script::decimal |
|
staticinherited |
const char* ost::Script::etc_prefix |
|
staticinherited |
const char* ost::Script::exec_extensions |
|
staticinherited |
bool ost::Script::exec_funcs |
|
staticinherited |
const char* ost::Script::exec_prefix |
|
staticinherited |
const char* ost::Script::exec_token |
|
staticinherited |
const char* ost::Script::exit_token |
|
staticinherited |
bool ost::Script::fastStart |
|
staticinherited |
unsigned ost::Script::fastStepping |
|
staticinherited |
Line* ost::ScriptRegistry::line |
const char* ost::Script::log_prefix |
|
staticinherited |
size_t ost::Script::pagesize |
|
staticinherited |
const char* ost::Script::plugins |
|
staticinherited |
const char* ost::ScriptRegistry::protocol |
Name* ost::ScriptRegistry::scr |
unsigned ost::Script::symlimit |
|
staticinherited |
unsigned ost::Script::symsize |
|
staticinherited |
bool ost::Script::use_definitions |
|
staticinherited |
bool ost::Script::use_funcs |
|
staticinherited |
bool ost::Script::use_macros |
|
staticinherited |
bool ost::Script::use_merge |
|
staticinherited |
bool ost::Script::use_prefix |
|
staticinherited |
bool ost::Script::useBigmem |
|
staticinherited |
const char* ost::Script::var_prefix |
|
staticinherited |
The documentation for this class was generated from the following file: