videoLat 2.0
Video conferencing delay measurements
Public Member Functions | Static Public Member Functions
PythonLoader Class Reference

#import <PythonLoader.h>

List of all members.

Public Member Functions

(PythonLoader *) - init
 Internal: initialize the loader object.
(BOOL) - loadURL:
(BOOL) - loadModule:fromDirectory:
(BOOL) - loadScriptNamed:
(BOOL) - loadPackageNamed:

Static Public Member Functions

(PythonLoader *) + sharedPythonLoader
 Singleton pattern.

Detailed Description

Load Python code. Because the Python code runs in the same binary as videoLat it has access to all the objects in the program, through the pyobjc pytho<->ObjC bridge. For an example, see

See also:
LabJackDevice which implements the
HardwareLightProtocol and can then be instantiate in the NIB file and connected to the right objects.

Member Function Documentation

- (BOOL) loadModule: (NSString *)  module
fromDirectory: (NSURL *)  directory 

Load a module from a given directory.

Parameters:
modulethe name of the module to load
directorywhere to load it from
Returns:
true if successful
- (BOOL) loadPackageNamed: (NSString *)  name

Load a Python package from a named resource.

Parameters:
namethe name of the package
Returns:
true if successful
- (BOOL) loadScriptNamed: (NSString *)  name

Load a Python script from a named resource.

Parameters:
namethe name of the script
Returns:
true if successful
- (BOOL) loadURL: (NSURL *)  script

Load a Python script.

Parameters:
scriptthe URL of the script to load (must be a local file)
Returns:
true if successful

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Properties Defines