1 // Generated by using Rcpp::compileAttributes() -> do not edit by hand
2 // Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
3 
4 #ifndef RCPP_sf_RCPPEXPORTS_H_GEN_
5 #define RCPP_sf_RCPPEXPORTS_H_GEN_
6 
7 #include <Rcpp.h>
8 
9 namespace sf {
10 
11     using namespace Rcpp;
12 
13     namespace {
validateSignature(const char * sig)14         void validateSignature(const char* sig) {
15             Rcpp::Function require = Rcpp::Environment::base_env()["require"];
16             require("sf", Rcpp::Named("quietly") = true);
17             typedef int(*Ptr_validate)(const char*);
18             static Ptr_validate p_validate = (Ptr_validate)
19                 R_GetCCallable("sf", "_sf_RcppExport_validate");
20             if (!p_validate(sig)) {
21                 throw Rcpp::function_not_exported(
22                     "C++ function with signature '" + std::string(sig) + "' not found in sf");
23             }
24         }
25     }
26 
27     inline Rcpp::List CPL_read_wkb(Rcpp::List wkb_list, bool EWKB = false, bool spatialite = false) {
28         typedef SEXP(*Ptr_CPL_read_wkb)(SEXP,SEXP,SEXP);
29         static Ptr_CPL_read_wkb p_CPL_read_wkb = NULL;
30         if (p_CPL_read_wkb == NULL) {
31             validateSignature("Rcpp::List(*CPL_read_wkb)(Rcpp::List,bool,bool)");
32             p_CPL_read_wkb = (Ptr_CPL_read_wkb)R_GetCCallable("sf", "_sf_CPL_read_wkb");
33         }
34         RObject rcpp_result_gen;
35         {
36             RNGScope RCPP_rngScope_gen;
37             rcpp_result_gen = p_CPL_read_wkb(Shield<SEXP>(Rcpp::wrap(wkb_list)), Shield<SEXP>(Rcpp::wrap(EWKB)), Shield<SEXP>(Rcpp::wrap(spatialite)));
38         }
39         if (rcpp_result_gen.inherits("interrupted-error"))
40             throw Rcpp::internal::InterruptedException();
41         if (Rcpp::internal::isLongjumpSentinel(rcpp_result_gen))
42             throw Rcpp::LongjumpException(rcpp_result_gen);
43         if (rcpp_result_gen.inherits("try-error"))
44             throw Rcpp::exception(Rcpp::as<std::string>(rcpp_result_gen).c_str());
45         return Rcpp::as<Rcpp::List >(rcpp_result_gen);
46     }
47 
48     inline Rcpp::List CPL_write_wkb(Rcpp::List sfc, bool EWKB = false) {
49         typedef SEXP(*Ptr_CPL_write_wkb)(SEXP,SEXP);
50         static Ptr_CPL_write_wkb p_CPL_write_wkb = NULL;
51         if (p_CPL_write_wkb == NULL) {
52             validateSignature("Rcpp::List(*CPL_write_wkb)(Rcpp::List,bool)");
53             p_CPL_write_wkb = (Ptr_CPL_write_wkb)R_GetCCallable("sf", "_sf_CPL_write_wkb");
54         }
55         RObject rcpp_result_gen;
56         {
57             RNGScope RCPP_rngScope_gen;
58             rcpp_result_gen = p_CPL_write_wkb(Shield<SEXP>(Rcpp::wrap(sfc)), Shield<SEXP>(Rcpp::wrap(EWKB)));
59         }
60         if (rcpp_result_gen.inherits("interrupted-error"))
61             throw Rcpp::internal::InterruptedException();
62         if (Rcpp::internal::isLongjumpSentinel(rcpp_result_gen))
63             throw Rcpp::LongjumpException(rcpp_result_gen);
64         if (rcpp_result_gen.inherits("try-error"))
65             throw Rcpp::exception(Rcpp::as<std::string>(rcpp_result_gen).c_str());
66         return Rcpp::as<Rcpp::List >(rcpp_result_gen);
67     }
68 
69 }
70 
71 #endif // RCPP_sf_RCPPEXPORTS_H_GEN_
72