FARGOS/VISTA Object Management Environment Core  ..
FARGOS/VISTA Object Management Environment Core Table of Contents
OME Processing Loop Routines

Functions

int VISTAOMEmain (int argc, const char **argv, const char **envp=nullptr)
 Library main entry point. More...
 
int OMEinitSystem (const char *rcFileName, int argc=0, const char **argv=nullptr, const char **envp=nullptr)
 Standard initialization routine for FARGOS/VISTA Object Management Environment. More...
 
int OMEmainLoop (uint_fast32_t methodLimit=20000)
 Run method invocations and handle events, such as input available and timer expiration. More...
 

Detailed Description

Function Documentation

◆ OMEinitSystem()

int OMEinitSystem ( const char *  rcFileName,
int  argc = 0,
const char **  argv = nullptr,
const char **  envp = nullptr 
)

Standard initialization routine for FARGOS/VISTA Object Management Environment.

Parameters
rcFileNameidentifies the name of an boot script file to be processed via CreateObjects.
argcis a count of the arguments in the argv array.
argvis an array of null-terminated C strings, corresponding to the arguments to the program. Subscript 0 holds the name used to invoke the program.
envpis an array of null-terminated C string, which hold the initial set of process environment variables.

The OMEinitSystem() function calls various initialization routines and then creates the special ObjectCreator object. To complete the boot process, a CreateObjects object is created and provided the rcFileName argument.

The actual execution of the system does not take place within this initialization routine. Instead, OMEmainLoop() or an equivalent must be called to enable the execution of method invocations.

Return values
0indicates successful initialization.
-1indicates unsuccessful initialization.
See also
OMEinitDebugFlag
OMEnlmData::initialize()
OMEsetDebugFlag()
OMEgetSystemUser()
OMEthread::defineOMEthreadClass()
OMEobjectInstance::defineOMEobjectClass()
OMEdisplayModuleComments()

◆ OMEmainLoop()

int OMEmainLoop ( uint_fast32_t  methodLimit)

Run method invocations and handle events, such as input available and timer expiration.

Run method invocations and handle events, such as input available and timer expiration.

Referenced by VISTAOMEmain().

◆ VISTAOMEmain()

int VISTAOMEmain ( int  argc,
const char **  argv,
const char **  envp = nullptr 
)

Library main entry point.

Generated: Tue Jul 28 2020 16:03:26
Support Information