1234567891011121314151617181920212223242526272829303132333435363738394041 |
- /*
- * Author: Patrick-Christopher Mattulat
- * Company: Lynar Studios
- * E-Mail: webmaster@lynarstudios.com
- * Created: 2023-04-07
- * Changed: 2023-04-07
- *
- * */
- #ifndef LS_STD_JNI_CLASS_HPP
- #define LS_STD_JNI_CLASS_HPP
- #include "JniClassParameter.hpp"
- #include <jni.h>
- #include <ls-std/core/interface/IJniApi.hpp>
- #include <ls-std/os/dynamic-goal.hpp>
- #include <memory>
- #include <string>
- namespace ls::std::core
- {
- class LS_STD_DYNAMIC_GOAL JniClass
- {
- public:
- explicit JniClass(const ::std::shared_ptr<ls::std::core::JniClassParameter> &_parameter, const ::std::string &_path);
- virtual ~JniClass();
- bool load(); // nodiscard is optional here
- private:
- jclass javaClass{};
- ::std::shared_ptr<ls::std::core::JniClassParameter> parameter{};
- ::std::string path{};
- void _createJniApi();
- };
- }
- #endif
|