Linux ip-172-26-2-223 5.4.0-1018-aws #18-Ubuntu SMP Wed Jun 24 01:15:00 UTC 2020 x86_64
Apache
: 172.26.2.223 | : 52.14.150.165
Cant Read [ /etc/named.conf ]
8.1.13
www
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
usr /
share /
swig4.0 /
typemaps /
[ HOME SHELL ]
Name
Size
Permission
Action
attribute.swg
9.51
KB
-rw-r--r--
carrays.swg
2.62
KB
-rw-r--r--
cdata.swg
1.83
KB
-rw-r--r--
cmalloc.swg
2.38
KB
-rw-r--r--
cpointer.swg
3.18
KB
-rw-r--r--
cstring.swg
167
B
-rw-r--r--
cstrings.swg
8.03
KB
-rw-r--r--
cwstring.swg
207
B
-rw-r--r--
enumint.swg
1.24
KB
-rw-r--r--
exception.swg
2.65
KB
-rw-r--r--
factory.swg
2.38
KB
-rw-r--r--
fragments.swg
7.4
KB
-rw-r--r--
implicit.swg
4.86
KB
-rw-r--r--
inoutlist.swg
9.26
KB
-rw-r--r--
misctypes.swg
467
B
-rw-r--r--
primtypes.swg
9.99
KB
-rw-r--r--
ptrtypes.swg
6.44
KB
-rw-r--r--
std_except.swg
1.21
KB
-rw-r--r--
std_string.swg
347
B
-rw-r--r--
std_strings.swg
1.93
KB
-rw-r--r--
std_wstring.swg
400
B
-rw-r--r--
string.swg
777
B
-rw-r--r--
strings.swg
18.37
KB
-rw-r--r--
swigmacros.swg
7.68
KB
-rw-r--r--
swigobject.swg
894
B
-rw-r--r--
swigtype.swg
23.3
KB
-rw-r--r--
swigtypemaps.swg
4.87
KB
-rw-r--r--
typemaps.swg
4.46
KB
-rw-r--r--
valtypes.swg
6.97
KB
-rw-r--r--
void.swg
2.02
KB
-rw-r--r--
wstring.swg
805
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : factory.swg
/* Implement a more natural wrap for factory methods, for example, if you have: ---- geometry.h -------- struct Geometry { enum GeomType{ POINT, CIRCLE }; virtual ~Geometry() {} virtual int draw() = 0; // // Factory method for all the Geometry objects // static Geometry *create(GeomType i); }; struct Point : Geometry { int draw() { return 1; } double width() { return 1.0; } }; struct Circle : Geometry { int draw() { return 2; } double radius() { return 1.5; } }; // // Factory method for all the Geometry objects // Geometry *Geometry::create(GeomType type) { switch (type) { case POINT: return new Point(); case CIRCLE: return new Circle(); default: return 0; } } ---- geometry.h -------- You can use the %factory with the Geometry::create method as follows: %newobject Geometry::create; %factory(Geometry *Geometry::create, Point, Circle); %include "geometry.h" and Geometry::create will return a 'Point' or 'Circle' instance instead of the plain 'Geometry' type. For example, in python: circle = Geometry.create(Geometry.CIRCLE) r = circle.radius() where circle is a Circle proxy instance. NOTES: remember to fully qualify all the type names and don't use %factory inside a namespace declaration, ie, instead of namespace Foo { %factory(Geometry *Geometry::create, Point, Circle); } use %factory(Foo::Geometry *Foo::Geometry::create, Foo::Point, Foo::Circle); */ %define %_factory_dispatch(Type) if (!dcast) { Type *dobj = dynamic_cast<Type *>($1); if (dobj) { dcast = 1; %set_output(SWIG_NewPointerObj(%as_voidptr(dobj),$descriptor(Type *), $owner | %newpointer_flags)); } }%enddef %define %factory(Method,Types...) %typemap(out) Method { int dcast = 0; %formacro(%_factory_dispatch, Types) if (!dcast) { %set_output(SWIG_NewPointerObj(%as_voidptr($1),$descriptor, $owner | %newpointer_flags)); } }%enddef
Close