Project

Profile

Help

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

he / src / main / c / Saxon.C.API / XdmAtomicValue.h @ 7728ae0b

1
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2
// Copyright (c) 2015 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_XDMATOMICVALUE_h
9
#define SAXON_XDMATOMICVALUE_h
10

    
11

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

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

    
19

    
20
class XdmAtomicValue : public XdmItem {
21
    
22
public:
23

    
24
    XdmAtomicValue();
25

    
26
    XdmAtomicValue(const XdmAtomicValue &d);
27

    
28

    
29
    virtual ~XdmAtomicValue();
30

    
31
    XdmAtomicValue(jobject);
32

    
33
    XdmAtomicValue(jobject, const char* ty);
34

    
35
    const char* getPrimitiveTypeName();
36

    
37
    bool getBooleanValue();
38

    
39
    double getDoubleValue();
40

    
41
    const char * getStringValue();
42

    
43
    long getLongValue();
44

    
45
    void setType(const char* ty);
46

    
47
    
48
    bool isAtomic(){
49
        return true;
50
    }
51

    
52
        /**
53
        * Get the type of the object
54
        */
55
        XDM_TYPE getType() {
56
                return XDM_ATOMIC_VALUE;
57
        }
58
    
59
    
60
private:
61
     
62
    std::string valType;
63

    
64

    
65
};
66

    
67

    
68

    
69

    
70
#endif
(27-27/56)