Project

Profile

Help

How to connect?
Download (755 Bytes) Statistics
| Branch: | Revision:

he / src / main / c / samples / cppTests / cppExtensionFunction.h @ 339c45ee

1
//
2
// Created by O'Neil Delpratt on 14/01/2021.
3
//
4

    
5
#ifndef CPPTESTS_CPPEXTENSIONFUNCTION_H
6
#define CPPTESTS_CPPEXTENSIONFUNCTION_H
7

    
8

    
9
#include <sstream>
10

    
11
#include "../../Saxon.C.API/SaxonProcessor.h"
12
#include "../../Saxon.C.API/XdmValue.h"
13
#include "../../Saxon.C.API/XdmItem.h"
14
#include "../../Saxon.C.API/XdmNode.h"
15
#include "../../Saxon.C.API/XdmAtomicValue.h"
16
#include <string>
17

    
18
// TODO: write test case for checking parameters which are null
19

    
20

    
21
using namespace std;
22

    
23
class cppExtensionFunction {
24
public:
25

    
26
    static jobject JNICALL cppNativeCall
27
    (jstring funcName, jobjectArray arguments, jobjectArray argTypes);
28

    
29
    static string nativeExtensionMethod(char * param1, int number);
30

    
31

    
32

    
33

    
34

    
35
private:
36

    
37

    
38

    
39

    
40
};
41

    
42

    
43

    
44
#endif //CPPTESTS_CPPEXTENSIONFUNCTION_H
(14-14/28)