summaryrefslogtreecommitdiff
path: root/bindings/swig/directors.i
blob: ec5e42cab142ac2db37b1cd0c32800a6cb966cd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* 
This is a list of all the classes which have directors enabled.

Directors allow virtual methods of classes to be overridden in a subclass in
the target language. This may have performance implications, and is not
available for all target languages, though it should be for the main ones
*/
%feature("director") sword::SWLog::logMessage;
%feature("director") PyStringMgr;
%feature("nodirector") PyStringMgr::upperUTF8;
%feature("nodirector") PyStringMgr::upperLatin1;

%feature("director") RenderCallback;
%feature("director") MarkupCallback;

%feature("director") SWSearcher;

%feature("director") sword::StatusReporter;
%feature("director") sword::FTPTransport;
%feature("nodirector") sword::FTPTransport::getDirList;

%feature("director:except") {
    if ($error != NULL) {
        throw Swig::DirectorMethodException();
    }
}

%exception {
    try { $action }
    catch (Swig::DirectorException &e) { SWIG_fail; }
}