Commit 390f89f8 authored by Ryan Berkheimer's avatar Ryan Berkheimer

moved JniUtils include to header, removed unused include

parent 06ca5585
#include "EndpointUtils.h"
#include <jni.h>
/**
Constructor for the Endpoint object.
*/
EndpointUtils::EndpointUtils(JNIEnv *jvm, ListUtils *listUtils)
{
this->loadGlobalRefs(jvm, listUtils);
this->loadMethodIds();
}
EndpointUtils::~EndpointUtils()
{
try
{}
catch (const std::exception &e)
{
std::cout << e.what();
}
}
void EndpointUtils::loadGlobalRefs(JNIEnv *jvm, ListUtils *listUtils)
{
this->jvm = jvm;
this->listUtils = listUtils;
}
void EndpointUtils::loadMethodIds()
{
}
\ No newline at end of file
#ifndef _ENDPOINTUTILS_H
#define _ENDPOINTUTILS_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 EndpointUtils class.
* An endpoint, or endpoint connection, is a terminus for a given process. Endpoint connections
* consume records, evaluate containers, send and/or retrieve data, and create and return
* packets containing a return record/rejection set. This set of utils contains all API methods
* exposed to the user that can manipulate system properties directly managed by endpoints.
*
* @author Ryan Berkheimer
*/
class EndpointUtils
{
public:
/*Default constructor/destructors*/
EndpointUtils(JNIEnv *javaEnv, ListUtils *listUtils);
~EndpointUtils();
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 "ListUtils.h"
#include "JniUtils.h"
ListUtils::ListUtils(JNIEnv *env, TypeUtils *typeUtils)
{
......
......@@ -7,6 +7,7 @@
#ifdef __cplusplus
#include "JniUtils.h"
#include "TypeUtils.h"
#include <stdlib.h>
#include <iostream>
......
#include "PacketUtils.h"
#include "JniUtils.h"
#include <jni.h>
......
#include "ProtocolRecordUtils.h"
#include <jni.h>
/**
Constructor for a ProtocolRecordUtils object.
*/
ProtocolRecordUtils::ProtocolRecordUtils(JNIEnv *jvm, ListUtils *listUtils)
{
this->loadGlobalRefs(jvm, listUtils);
this->loadMethodIds();
}
ProtocolRecordUtils::~ProtocolRecordUtils()
{
try
{}
catch (const std::exception &e)
{
std::cout << e.what();
}
}
void ProtocolRecordUtils::loadGlobalRefs(JNIEnv *jvm, ListUtils *listUtils)
{
this->jvm = jvm;
this->listUtils = listUtils;
}
void ProtocolRecordUtils::loadMethodIds()
{
}
\ No newline at end of file
#ifndef _PROTOCOLRECORDUTILS_H
#define _PROTOCOLRECORDUTILS_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 ProtoclRecordUtils class.
* A protocol record contains all containers in a one to one mapping with an
* endpoint connection. These containers are collections, classifiers, transformations, and uuids.
* Procotocl records can be used to retrieve record sets for specified containers.
* @author Ryan Berkheimer
*/
class ProtocolRecordUtils
{
public:
/*Default constructor/destructors*/
ProtocolRecordUtils(JNIEnv *javaEnv, ListUtils *listUtils);
~ProtocolRecordUtils();
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 "RecordUtils.h"
#include <jni.h>
/**
Constructor for the RecordUtils object.
*/
RecordUtils::RecordUtils(JNIEnv *jvm, ListUtils *listUtils)
{
this->loadGlobalRefs(jvm, listUtils);
this->loadMethodIds();
}
RecordUtils::~RecordUtils()
{
try
{}
catch (const std::exception &e)
{
std::cout << e.what();
}
}
void RecordUtils::loadGlobalRefs(JNIEnv *jvm, ListUtils *listUtils)
{
this->jvm = jvm;
this->listUtils = listUtils;
}
void RecordUtils::loadMethodIds()
{
}
\ No newline at end of file
#ifndef _RECORDUTILS_H
#define _RECORDUTILS_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 RecordUtils class.
* A record contains fields and conditions.
*/
class RecordUtils
{
public:
/*Default constructor/destructors*/
RecordUtils(JNIEnv *javaEnv, ListUtils *listUtils);
~RecordUtils();
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 "JniUtils.h"
#include "TypeUtils.h"
TypeUtils::TypeUtils(JNIEnv *env)
......
......@@ -8,6 +8,7 @@
#include <stdlib.h>
#include <iostream>
#include "JniUtils.h"
/**
* This is the header for the TypeUtils object class. TypeUtils contains a set of methods used for manipulation of Java Lists
......
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