SaxonC
13.0.0
Saxon Processor library for C/C++, PHP and Python
Toggle main menu visibility
Loading...
Searching...
No Matches
src
include
saxonc
XdmAtomicValue.h
1
2
// Copyright (c) 2022 - 2023 Saxonica Limited.
3
// This Source Code Form is subject to the terms of the Mozilla Public License,
4
// v. 2.0. If a copy of the MPL was not distributed with this file, You can
5
// obtain one at http://mozilla.org/MPL/2.0/. This Source Code Form is
6
// "Incompatible With Secondary Licenses", as defined by the Mozilla Public
7
// License, v. 2.0.
9
10
#ifndef SAXON_XDMATOMICVALUE_h
11
#define SAXON_XDMATOMICVALUE_h
12
13
#include "saxonc_export.h"
14
#include "saxonc/XdmItem.h"
15
#include <string>
16
17
#include <stdlib.h>
18
#include <string.h>
19
27
class
SAXONC_EXPORT
XdmAtomicValue
:
public
XdmItem
{
28
29
public
:
34
XdmAtomicValue
();
35
40
XdmAtomicValue
(
const
XdmAtomicValue
&other);
41
45
virtual
~XdmAtomicValue
();
46
51
XdmAtomicValue
(int64_t val);
52
58
XdmAtomicValue
(int64_t val,
const
char
*ty);
59
69
const
char
*
getPrimitiveTypeName
();
70
79
bool
getBooleanValue
();
80
91
double
getDoubleValue
();
92
100
long
getLongValue
();
101
106
void
setType
(
const
char
*ty);
107
112
XdmItem
*
getHead
();
113
119
bool
isAtomic
() {
return
true
; }
120
125
int
getHashCode();
126
131
XDM_TYPE
getType
() {
return
XDM_ATOMIC_VALUE; }
132
133
private
:
134
std::string valType;
135
};
136
137
#endif
getBooleanValue
SAXONC_EXPORT bool getBooleanValue(sxnc_environment *environi, sxnc_value value)
Get the boolean value of the item.
Definition
SaxonCXPath.c:345
getLongValue
SAXONC_EXPORT long getLongValue(sxnc_environment *environi, sxnc_value value, long failureVal)
Get the long value of the item.
Definition
SaxonCXPath.c:355
getDoubleValue
SAXONC_EXPORT double getDoubleValue(sxnc_environment *environi, sxnc_value value, double failureVal)
Get the double value of the item.
Definition
SaxonCXPath.c:377
XdmAtomicValue::setType
void setType(const char *ty)
Set the type annotation of the atomic value.
Definition
XdmAtomicValue.cpp:33
XdmAtomicValue::XdmAtomicValue
XdmAtomicValue()
Default constructor.
Definition
XdmAtomicValue.cpp:6
XdmAtomicValue::getPrimitiveTypeName
const char * getPrimitiveTypeName()
Get the primitive type of this atomic value, as a QName.
Definition
XdmAtomicValue.cpp:35
XdmAtomicValue::isAtomic
bool isAtomic()
Determine whether the item is an atomic value or some other type of item.
Definition
XdmAtomicValue.h:119
XdmAtomicValue::getType
XDM_TYPE getType()
Get the type of this XDM value.
Definition
XdmAtomicValue.h:131
XdmItem::XdmItem
XdmItem()
Default constructor.
Definition
XdmItem.cpp:5
XdmItem::getHead
virtual XdmItem * getHead()
Get the first item in the sequence consisting of just this item.
Definition
XdmItem.cpp:42
Generated on
for SaxonC by
1.17.0