ACT Library
|
Functions to manage namespace search paths. More...
#include <namespaces.h>
Public Member Functions | |
ActOpen () | |
~ActOpen () | |
int | Open (ActNamespace *ns, const char *newname=NULL) |
list_t * | findAll (ActNamespace *cur, const char *s) |
ActNamespace * | find (ActNamespace *cur, const char *s) |
ActNamespace * | findType (ActNamespace *cur, const char *s) |
Private Attributes | |
list_t * | search_path |
Functions to manage namespace search paths.
There are two open commands: open foo; this adds "foo" to the search path, and allows access to items that would be accessible in the foo namespace context (w.r.t. exports)
open foo -> bar; this renames foo to bar (without changing the export definitions)
ActOpen::ActOpen | ( | ) |
ActOpen::~ActOpen | ( | ) |
ActNamespace * ActOpen::find | ( | ActNamespace * | cur, |
const char * | s | ||
) |
list_t * ActOpen::findAll | ( | ActNamespace * | cur, |
const char * | s | ||
) |
Find namespace in the current context, given the context of opens
cur | is the current default namespace |
s | is the name of the namespace to be located |
ActNamespace * ActOpen::findType | ( | ActNamespace * | cur, |
const char * | s | ||
) |
Find namespace that contains the specified type, given the context of opens
cur | is the current default namespace |
s | is the name of the type to be located |
int ActOpen::Open | ( | ActNamespace * | ns, |
const char * | newname = NULL |
||
) |
Opens a namespace (optionally as a new name)
ns | is the namespace to be opened |
newname | is the new name to be assigned to the namespace. If NULL, then the namespace is simply opened |
|
private |
list of "open" namespaces (a list of ActNamespace *)