Skip to content
Snippets Groups Projects
Commit fa06b4c1 authored by florian's avatar florian
Browse files

WIP: Remove non-working wrappers and let it rest for now

parent 1d0944e3
Branches f-cxx-include
No related tags found
1 merge request!1DRAFT: ENH: Include libcaosdb and a minimal wrapper
Pipeline #10206 failed
......@@ -23,20 +23,28 @@
#include <string>
#include <jlcxx/jlcxx.hpp>
#include <jlcxx/array.hpp>
#include <jlcxx/const_array.hpp>
#include <jlcxx/functions.hpp>
#include <jlcxx/module.hpp>
#include <jlcxx/smart_pointers.hpp>
#include <jlcxx/stl.hpp>
#include <jlcxx/tuple.hpp>
#include <jlcxx/type_conversion.hpp>
#include "caosdb/authentication.h"
#include "caosdb/connection.h"
#include "caosdb/constants.h"
#include "caosdb/exceptions.h"
namespace jlcxx
{
template<>
struct SuperType<caosdb::authentication::PlainPasswordAuthenticator>
{
typedef caosdb::authentication::Authenticator type;
};
}
// namespace jlcxx
// {
// template<>
// struct SuperType<caosdb::authentication::PlainPasswordAuthenticator>
// {
// typedef caosdb::authentication::Authenticator type;
// };
// }
JLCXX_MODULE define_julia_module(jlcxx::Module& mod)
{
......@@ -57,8 +65,15 @@ JLCXX_MODULE define_julia_module(jlcxx::Module& mod)
// authenticators
mod.add_type<caosdb::authentication::Authenticator>("CaosDBAuthenticator");
mod.add_type<caosdb::authentication::PlainPasswordAuthenticator>("PlainPasswordAuthenticator",
jlcxx::julia_base_type<caosdb::authentication::Authenticator>())
.constructor<const std::string&, const std::string&>()
.method("getCallCredentials", &caosdb::authentication::PlainPasswordAuthenticator::getCallCredentials);
// Currently not working, see https://github.com/JuliaInterop/CxxWrap.jl/issues/294
// mod.add_type<caosdb::authentication::PlainPasswordAuthenticator>("PlainPasswordAuthenticator",
// jlcxx::julia_base_type<caosdb::authentication::Authenticator>())
// .constructor<const std::string&, const std::string&>()
// .method("getCallCredentials", &caosdb::authentication::PlainPasswordAuthenticator::getCallCredentials);
mod.add_type<caosdb::connection::CACertificateProvider>("CACertificateProvider");
// TODO Add children once the above issue is resolved
mod.add_type<caosdb::connection::CaosDBConnectionConfig>("CaosDBConnectionConfig");
mod.add_type<caosdb::connection::InsecureCaosDBConnectionConfig>("InsecureCaosDBConnectionConfig");
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment