Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F8310220
rave_autoconf.i.in
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
rave_autoconf.i.in
View Options
// Python & Java convenience
%{
#include <sstream>
%}
%define STRINGHELPER(classname)
%extend classname {
const char * toString() {
std::ostringstream os;
os << (*self);
return os.str().c_str();
}
std::string __str__() {
std::ostringstream os;
os << (*self);
return os.str();
}
};
%enddef // STRINGHELPER
%include "rave.i"
%pragma(java) jniclasscode = %{
static {
String libname = System.mapLibraryName( "@JAVALIBRARY@" );
try {
try {
System.load ( "@prefix@/lib/jni/" + libname );
System.out.println( libname + " successfully loaded!" );
} catch(UnsatisfiedLinkError e) {
libname = "lib@JAVALIBRARY@.so";
System.load ( "@prefix@/lib/jni/" + libname );
System.out.println( libname + " successfully loaded!" );
}
} catch(SecurityException e) {
System.out.println( libname + " not loaded!" );
e.printStackTrace();
} catch(UnsatisfiedLinkError e) {
System.out.println( libname + " not loaded!" );
e.printStackTrace();
}
}
%}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Sat, Dec 21, 5:46 PM (10 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3818273
Default Alt Text
rave_autoconf.i.in (1 KB)
Attached To
rRAVESVN ravesvn
Event Timeline
Log In to Comment