git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6353 626c5289-ae23-0410-ae9c-e8d60b6d4f22
30 lines
605 B
OpenEdge ABL
30 lines
605 B
OpenEdge ABL
%module(directors="1") director_default
|
|
%{
|
|
#include <string>
|
|
|
|
class Foo {
|
|
public:
|
|
Foo(int i = -1) {}
|
|
virtual ~Foo() {}
|
|
virtual std::string Msg(std::string msg = "default") { return "Foo-" + msg; }
|
|
|
|
std::string GetMsg() { return Msg(); }
|
|
std::string GetMsg(std::string msg) { return Msg(msg); }
|
|
};
|
|
|
|
%}
|
|
|
|
%include "std_string.i"
|
|
|
|
%feature("director") Foo;
|
|
|
|
class Foo {
|
|
public:
|
|
Foo(int i = -1) {}
|
|
virtual ~Foo() {}
|
|
virtual std::string Msg(std::string msg = "default") { return msg; }
|
|
|
|
std::string GetMsg() { return Msg(); }
|
|
std::string GetMsg(std::string msg) { return Msg(msg); }
|
|
};
|
|
|