Xerces-C++: XMLAbstractDoubleFloat.hpp Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22#if !defined(XERCESC_INCLUDE_GUARD_XML_ABSTRACT_DOUBLE_FLOAT_HPP)

23#define XERCESC_INCLUDE_GUARD_XML_ABSTRACT_DOUBLE_FLOAT_HPP

24

25

28

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

60

62{

63public:

64

73

75

77 (

78 const XMLCh* const rawData

80 );

81

83

85

87

89

90 inline bool isDataConverted() const;

91

92 inline bool isDataOverflowed() const;

93

94 inline double getValue() const;

95

97

98

99

100

101

102

103

104

105

107

108

109

110

112

113protected:

114

115

116

117

119

121

138

139

140

141

143

144 void

146

147private:

148

149

150

151

152

153

156

157 void normalizeZero(XMLCh* const);

158

159 inline bool isSpecialValue() const;

160

163

164 void formatString();

165

166protected:

171

172private:

173 int fSign;

175

176

177

178

179

180

181

182

183

184 XMLCh* fFormattedString;

186

187};

188

189inline bool XMLAbstractDoubleFloat::isSpecialValue() const

190{

192}

193

195{

196 return fMemoryManager;

197}

198

203

208

213

218

220

221#endif

#define XERCES_CPP_NAMESPACE_BEGIN

Definition XercesDefs.hpp:112

#define XMLUTIL_EXPORT

Definition XercesDefs.hpp:162

#define XERCES_CPP_NAMESPACE_END

Definition XercesDefs.hpp:113

char16_t XMLCh

Definition Xerces_autoconf_config.hpp:120

Configurable memory manager.

Definition MemoryManager.hpp:40

Definition XMLAbstractDoubleFloat.hpp:62

double getValue() const

Definition XMLAbstractDoubleFloat.hpp:209

void convert(char *const strValue)

virtual void checkBoundary(char *const strValue)=0

XMLAbstractDoubleFloat(MemoryManager *const manager=XMLPlatformUtils::fgMemoryManager)

LiteralType

Definition XMLAbstractDoubleFloat.hpp:66

@ SpecialTypeNum

Definition XMLAbstractDoubleFloat.hpp:70

@ NegINF

Definition XMLAbstractDoubleFloat.hpp:67

@ NaN

Definition XMLAbstractDoubleFloat.hpp:69

@ PosINF

Definition XMLAbstractDoubleFloat.hpp:68

static XMLCh * getCanonicalRepresentation(const XMLCh *const rawData, MemoryManager *const memMgr=XMLPlatformUtils::fgMemoryManager)

bool fDataOverflowed

Definition XMLAbstractDoubleFloat.hpp:170

LiteralType fType

Definition XMLAbstractDoubleFloat.hpp:168

double fValue

Definition XMLAbstractDoubleFloat.hpp:167

virtual XMLCh * getRawData() const

Return string representation of the decimal value.

bool isDataOverflowed() const

Definition XMLAbstractDoubleFloat.hpp:204

virtual const XMLCh * getFormattedString() const

Return the original and converted value of the original data.

bool fDataConverted

Definition XMLAbstractDoubleFloat.hpp:169

LiteralType getType() const

Definition XMLAbstractDoubleFloat.hpp:214

static void normalizeDecimalPoint(char *const toNormal)

MemoryManager * getMemoryManager() const

Definition XMLAbstractDoubleFloat.hpp:194

bool isDataConverted() const

Definition XMLAbstractDoubleFloat.hpp:199

virtual int getSign() const

Returns the sign of this number.

static int compareValues(const XMLAbstractDoubleFloat *const lValue, const XMLAbstractDoubleFloat *const rValue, MemoryManager *const manager)

Compares this object to the specified object.

void init(const XMLCh *const strValue)

virtual ~XMLAbstractDoubleFloat()

Definition XMLNumber.hpp:31

static MemoryManager * fgMemoryManager

The configurable memory manager.

Definition PlatformUtils.hpp:121