ug4
type_converter.cpp File Reference
#include "type_converter.h"
#include "registry/registry.h"
#include "messaging.h"
#include "invocation.h"
#include <sstream>

Namespaces

 ug
 the ug namespace
 
 ug::vrl
 

Functions

jobject ug::vrl::boolean2JObject (JNIEnv *env, jboolean value)
 
jobject ug::vrl::boolVector2JObject (JNIEnv *env, const std::vector< bool > &bv)
 
jobjectArray ug::vrl::classes2NativeClasses (JNIEnv *env, const ug::bridge::Registry *reg)
 
jobjectArray ug::vrl::classGroups2NativeClassGroups (JNIEnv *env, const ug::bridge::Registry *reg)
 
bool ug::vrl::compareParamTypes (JNIEnv *env, jobjectArray params, ug::bridge::Registry *reg, ug::bridge::ParameterInfo const &paramStack, bool allowSmartToRawPtrConversion)
 
jobject ug::vrl::constPointer2JObject (JNIEnv *env, const void *value)
 
jobject ug::vrl::constPtrVector2JObject (JNIEnv *env, const std::vector< const void * > &pv)
 
jobject ug::vrl::constructor2NativeConstructor (JNIEnv *env, const ug::bridge::ExportedConstructor *constructor)
 
jobjectArray ug::vrl::constructors2NativeConstructors (JNIEnv *env, const ug::bridge::IExportedClass &eCls)
 
jobject ug::vrl::constSmartPointer2JObject (JNIEnv *env, ConstSmartPtr< void > value)
 
jobject ug::vrl::constSmartPtrVector2JObject (JNIEnv *env, const std::vector< ConstSmartPtr< void > > &pv)
 
jobjectArray ug::vrl::createEmptyJavaArray (JNIEnv *env, jclass elementClass)
 
jobjectArray ug::vrl::createEmptyJavaArray (JNIEnv *env, std::string className)
 
jobject ug::vrl::createEmptyString (JNIEnv *env)
 
jobject ug::vrl::cStringVector2JObject (JNIEnv *env, const std::vector< const char * > &sv)
 
jobject ug::vrl::double2JObject (JNIEnv *env, jdouble value)
 
jobject ug::vrl::function2NativeFunction (JNIEnv *env, const ug::bridge::ExportedFunction &func)
 
jobjectArray ug::vrl::functions2NativeGroups (JNIEnv *env, ug::bridge::Registry *reg)
 
std::vector< const char * > ug::vrl::getBaseClassNames (const ug::bridge::ClassNameNode *node)
 
jobject ug::vrl::getClass (JNIEnv *env, jobject obj)
 
std::string ug::vrl::getClassName (JNIEnv *env, jobject obj)
 
std::string ug::vrl::getParamClassName (JNIEnv *env, jobject obj)
 
std::string ug::vrl::getParamTypeAsString (const uint type)
 
std::string ug::vrl::getParamTypesAsString (JNIEnv *env, jobjectArray const &array)
 
const std::vector< const ug::bridge::IExportedClass * > ug::vrl::getParentClasses (ug::bridge::Registry *reg, const ug::bridge::IExportedClass *clazz)
 
jobject ug::vrl::int2JObject (JNIEnv *env, jint value)
 
jobject ug::vrl::intVector2JObject (JNIEnv *env, const std::vector< int > &iv)
 
void ug::vrl::invalidateJConstSmartPointer (JNIEnv *env, jobject obj)
 
void ug::vrl::invalidateJSmartPointer (JNIEnv *env, jobject obj)
 
bool ug::vrl::isConstJPtr (JNIEnv *env, jobject obj)
 
bool ug::vrl::isJObjectAnArray (JNIEnv *env, jobject value)
 
bool ug::vrl::isJSmartPointerConst (JNIEnv *env, jobject ptr)
 
jboolean ug::vrl::jObject2Boolean (JNIEnv *env, jobject obj)
 
void ug::vrl::jObject2BoolVector (JNIEnv *env, jobject object, std::vector< bool > &bv)
 
ConstSmartPtr< void > ug::vrl::jObject2ConstSmartPointer (JNIEnv *env, jobject obj)
 
void ug::vrl::jObject2ConstSmartPtrVector (JNIEnv *env, jobject object, ug::Variant::Type jo_type, ug::bridge::Registry *reg, std::vector< std::pair< ConstSmartPtr< void >, const ug::bridge::ClassNameNode * > > &pv)
 
jdouble ug::vrl::jObject2Double (JNIEnv *env, jobject obj)
 
jint ug::vrl::jObject2Int (JNIEnv *env, jobject obj)
 
void ug::vrl::jObject2IntVector (JNIEnv *env, jobject object, std::vector< int > &iv)
 
void ug::vrl::jObject2NumberVector (JNIEnv *env, jobject object, std::vector< number > &nv)
 
void * ug::vrl::jObject2Pointer (JNIEnv *env, jobject obj)
 
void ug::vrl::jObject2PtrVector (JNIEnv *env, jobject object, ug::Variant::Type jo_type, ug::bridge::Registry *reg, std::vector< std::pair< void *, const ug::bridge::ClassNameNode * > > &pv)
 
void ug::vrl::jObject2SizetVector (JNIEnv *env, jobject object, std::vector< size_t > &stv)
 
SmartPtr< void > ug::vrl::jObject2SmartPointer (JNIEnv *env, jobject obj)
 
void ug::vrl::jObject2SmartPtrVector (JNIEnv *env, jobject object, ug::bridge::Registry *reg, std::vector< std::pair< SmartPtr< void >, const ug::bridge::ClassNameNode * > > &pv)
 
void ug::vrl::jObject2stdStringVector (JNIEnv *env, jobject object, std::vector< std::string > &sv)
 
std::string ug::vrl::jObject2String (JNIEnv *env, jobject obj)
 
void ug::vrl::jobjectArray2ParamStack (JNIEnv *env, ug::bridge::Registry *reg, ug::bridge::ParameterStack &paramsOut, const ug::bridge::ParameterInfo &paramsTemplate, jobjectArray const &array)
 
std::string ug::vrl::jPointerGetName (JNIEnv *env, jobject obj)
 
jobject ug::vrl::method2NativeMethod (JNIEnv *env, const ug::bridge::ExportedMethod *method)
 
jobjectArray ug::vrl::methods2NativeGroups (JNIEnv *env, const ug::bridge::IExportedClass &eCls, bool constMethods)
 
jobject ug::vrl::numberVector2JObject (JNIEnv *env, const std::vector< number > &nv)
 
jobject ug::vrl::param2JObject (JNIEnv *env, ug::bridge::ParameterStack &params, size_t index)
 
TypeAndArray ug::vrl::paramClass2ParamType (JNIEnv *env, jobject obj)
 
jobjectArray ug::vrl::params2NativeParams (JNIEnv *env, const ug::bridge::ExportedConstructor &constructor)
 
jobjectArray ug::vrl::params2NativeParams (JNIEnv *env, const ug::bridge::ExportedFunctionBase &func)
 
int ug::vrl::paramType2Int (const ug::bridge::ParameterInfo &params, size_t index)
 
jobject ug::vrl::pointer2JObject (JNIEnv *env, void *value)
 
void ug::vrl::printParamType (const uint type, size_t index)
 
jobject ug::vrl::ptrVector2JObject (JNIEnv *env, const std::vector< void * > &pv)
 
jobject ug::vrl::registry2NativeAPI (JNIEnv *env, ug::bridge::Registry *reg)
 
jobject ug::vrl::retVal2NativeParam (JNIEnv *env, const ug::bridge::ExportedFunctionBase &func)
 
jobject ug::vrl::sizetVector2JObject (JNIEnv *env, const std::vector< size_t > &iv)
 
jobject ug::vrl::smartPointer2JObject (JNIEnv *env, SmartPtr< void > value)
 
jobject ug::vrl::smartPtrVector2JObject (JNIEnv *env, const std::vector< SmartPtr< void > > &pv)
 
jobject ug::vrl::stdStringVector2JObject (JNIEnv *env, const std::vector< std::string > &sv)
 
jobject ug::vrl::string2JObject (JNIEnv *env, const char *value)
 
jobjectArray ug::vrl::stringArrayC2J (JNIEnv *env, const char *const *strings, const unsigned int array_length)
 
jobjectArray ug::vrl::stringArrayC2J (JNIEnv *env, const std::string *strings, const size_t array_length)
 
jobjectArray ug::vrl::stringArrayC2J (JNIEnv *env, const std::vector< const char * > *strings)
 
jobjectArray ug::vrl::stringArrayC2J (JNIEnv *env, const std::vector< const char * > strings)
 
jobjectArray ug::vrl::stringArrayC2J (JNIEnv *env, std::vector< std::string > const &strings)
 
std::vector< std::string > ug::vrl::stringArrayJ2C (JNIEnv *env, jobjectArray const &array)
 
jstring ug::vrl::stringC2J (JNIEnv *env, const char *s)
 
std::string ug::vrl::stringJ2C (JNIEnv *env, jstring const &s)
 
void ug::vrl::throwUgErrorAsJavaException (JNIEnv *env, std::string error)
 
void ug::vrl::throwUgErrorAsJavaException (JNIEnv *env, ug::UGError error)