Commit 56f803f6 authored by Ryan Berkheimer's avatar Ryan Berkheimer

finished stubbing out utils for existing refactors

parent 390f89f8
#include "ConditionUtils.h"
#include <jni.h>
/**
Constructor for the ConditionUtils object.
*/
ConditionUtils::ConditionUtils(JNIEnv *jvm, ListUtils *listUtils)
{
this->loadGlobalRefs(jvm, listUtils);
this->loadMethodIds();
}
ConditionUtils::~ConditionUtils()
{
try
{}
catch (const std::exception &e)
{
std::cout << e.what();
}
}
void ConditionUtils::loadGlobalRefs(JNIEnv *jvm, ListUtils *listUtils)
{
this->jvm = jvm;
this->listUtils = listUtils;
}
void ConditionUtils::loadMethodIds()
{
}
\ No newline at end of file
#ifndef _CONDITIONUTILS_H
#define _CONDITIONUTILS_H
#include <jni.h>
#include <stdbool.h>
#include "messageapi_structs.h"
#ifdef __cplusplus
#include <iostream>
#include <string>
#include "JniUtils.h"
#include "ListUtils.h"
/**
* This is the header for the ConditionUtils class.
* A record contains fields and conditions.
*/
class ConditionUtils
{
public:
/*Default constructor/destructors*/
ConditionUtils(JNIEnv *javaEnv, ListUtils *listUtils);
~ConditionUtils();
private:
/*Vars*/
JNIEnv *jvm;
ListUtils *listUtils;
/*Load method IDS for reuse. MethodIDS do not count against the jref count and do need to be released.*/
void loadMethodIds();
void loadGlobalRefs(JNIEnv *env, ListUtils *listUtils);
/*Grouped methods for returning the matching method signature string for a given interface*/
const char *getMethodSignature(const char *methodName);
};
extern "C"
{
#endif
#ifdef __cplusplus
}
#endif
#endif
#include "FieldUtils.h"
#include <jni.h>
/**
Constructor for the FieldUtils object.
*/
FieldUtils::FieldUtils(JNIEnv *jvm, ListUtils *listUtils)
{
this->loadGlobalRefs(jvm, listUtils);
this->loadMethodIds();
}
FieldUtils::~FieldUtils()
{
try
{}
catch (const std::exception &e)
{
std::cout << e.what();
}
}
void FieldUtils::loadGlobalRefs(JNIEnv *jvm, ListUtils *listUtils)
{
this->jvm = jvm;
this->listUtils = listUtils;
}
void FieldUtils::loadMethodIds()
{
}
\ No newline at end of file
#ifndef _FIELDUTILS_H
#define _FIELDUTILS_H
#include <jni.h>
#include <stdbool.h>
#include "messageapi_structs.h"
#ifdef __cplusplus
#include <iostream>
#include <string>
#include "JniUtils.h"
#include "ListUtils.h"
/**
* This is the header for the FieldUtils class.
* A record contains fields and conditions.
*/
class FieldUtils
{
public:
/*Default constructor/destructors*/
FieldUtils(JNIEnv *javaEnv, ListUtils *listUtils);
~FieldUtils();
private:
/*Vars*/
JNIEnv *jvm;
ListUtils *listUtils;
/*Load method IDS for reuse. MethodIDS do not count against the jref count and do need to be released.*/
void loadMethodIds();
void loadGlobalRefs(JNIEnv *env, ListUtils *listUtils);
/*Grouped methods for returning the matching method signature string for a given interface*/
const char *getMethodSignature(const char *methodName);
};
extern "C"
{
#endif
#ifdef __cplusplus
}
#endif
#endif
#include "RejectionUtils.h"
#include <jni.h>
/**
Constructor for the RejectionUtils object.
*/
RejectionUtils::RejectionUtils(JNIEnv *jvm, ListUtils *listUtils)
{
this->loadGlobalRefs(jvm, listUtils);
this->loadMethodIds();
}
RejectionUtils::~RejectionUtils()
{
try
{}
catch (const std::exception &e)
{
std::cout << e.what();
}
}
void RejectionUtils::loadGlobalRefs(JNIEnv *jvm, ListUtils *listUtils)
{
this->jvm = jvm;
this->listUtils = listUtils;
}
void RejectionUtils::loadMethodIds()
{
}
\ No newline at end of file
#ifndef _REJECTIONUTILS_H
#define _REJECTIONUTILS_H
#include <jni.h>
#include <stdbool.h>
#include "messageapi_structs.h"
#ifdef __cplusplus
#include <iostream>
#include <string>
#include "JniUtils.h"
#include "ListUtils.h"
/**
* This is the header for the RejectionUtils class.
* A record contains fields and conditions.
*/
class RejectionUtils
{
public:
/*Default constructor/destructors*/
RejectionUtils(JNIEnv *javaEnv, ListUtils *listUtils);
~RejectionUtils();
private:
/*Vars*/
JNIEnv *jvm;
ListUtils *listUtils;
/*Load method IDS for reuse. MethodIDS do not count against the jref count and do need to be released.*/
void loadMethodIds();
void loadGlobalRefs(JNIEnv *env, ListUtils *listUtils);
/*Grouped methods for returning the matching method signature string for a given interface*/
const char *getMethodSignature(const char *methodName);
};
extern "C"
{
#endif
#ifdef __cplusplus
}
#endif
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment