File tom/Bundle


class tom.Bundle

Inherits

State supers
State, Constants, Runtime

variables

static Bundle main;
The main bundle, i.e. the bundle describing the program and the units.
static MutableIndexed units_path;
The path as registered by the units.

methods

pointer
  load String object;
Load the object, returning the underlying operating system handle upon success, or the NULL pointer upon failure. An error is signaled in case of the latter.

void
  load Array arguments;
Undocumented.

String
    locate-file String file
      extension String ext
  with-version: String version = nil;
Forward this to the main bundle.

instance (id)
  main;
Return the main bundle, creating it iff necessary.

void
  registerUnitDirectory String dir;
Register the dir as to contain resources for one of the units.

instance tom.Bundle

variables

public String directory;
The directory.
pointer handle;
Iff not the null pointer, the handle (in the underlying operating system) to the code loaded for this bundle. Iff it is the null pointer, the code has not (yet) been loaded.

methods

id (self)
  init String d;
Undocumented.

String
    locate-file String file
      extension String ext
  with-version: String version = nil;
Locate the file for the version in this bundle. If not found, search the main bundle. Iff still not found, it is searched for in the registered unit directories.

The extension ext, if not nil, is appended to the file, with a dot (.) in between.


Generated by tm 1.0.