Project

Profile

Help

How to connect?
Download (1.36 KB) Statistics
| Branch: | Tag: | Revision:

he / latest10 / hec / Saxon.C.API / XdmArray.h @ 61000456

1
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2
// Copyright (c) 2019 Saxonica Limited.
3
// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
4
// If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
5
// This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0.
6
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
7

    
8
#ifndef SAXON_XDM_ARRAY_h
9
#define SAXON_XDM_ARRAY_h
10

    
11

    
12
#include "XdmFunctionItem.h"
13
#include <string>
14

    
15
#include <stdlib.h>
16
#include <string.h>
17
#include <set>
18

    
19
class XdmArray : public XdmFunctionItem {
20

    
21
public:
22

    
23
    XdmArray();
24

    
25
    XdmArray(const XdmArray &d);
26

    
27

    
28
    virtual ~XdmArray(){
29
        //std::cerr<<"destructor called fpr XdmFunctionItem"<<std::endl;
30

    
31
    }
32

    
33
    XdmArray(jobject);
34

    
35
    int arrayLength() const;
36

    
37
    XdmValue* get(int n);
38

    
39
    XdmArray* put(int n, XdmValue * value);
40

    
41
    XdmArray* addMember(XdmValue* value);
42

    
43
    XdmArray* concat(XdmArray * value);
44

    
45
    std::list<XdmValue *> asList();
46

    
47
    int getArity(){return 1;}
48

    
49
        /**
50
        * Get the type of the object
51
        */
52
        XDM_TYPE getType() {
53
                return XDM_FUNCTION_ITEM;
54
        }
55

    
56

    
57
private:
58

    
59

    
60
    std::string fname;
61
    int arity{};
62

    
63
};
64

    
65

    
66

    
67

    
68
#endif
(22-22/53)