ObjFW  Diff

Differences From Artifact [2716730e4a]:

To Artifact [54f69129e9]:


23
24
25
26
27
28
29
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
61
62
63
64
65

66
67
68
69

70
71
72

73
74
75
76

77
78
79
80
81
82
83






84
85
86
87
88
89
90
23
24
25
26
27
28
29



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
61
62
63
64
65
66
67
68
69
70
71







-
-
-

-
+

+
-
+

-
+


-
+
-
-
-
-
-

-
+


-
+
-
-

-
+


-
-
-
-
-
-
-
-
+
-
-

-
+


-
+
-
-

-
+


-
-
-
-
-
+
+
+
+
+
+








/*!
 * @class OFXMLNode OFXMLNode.h ObjFW/OFXMLNode.h
 *
 * @brief A class which stores an XML element.
 */
@interface OFXMLNode: OFObject <OFCopying, OFSerialization>
- (instancetype)init OF_UNAVAILABLE;
- (instancetype)initWithSerialization: (OFXMLElement *)element OF_UNAVAILABLE;

/*!
 * @brief Returns the contents of the receiver as a string value.
 * The contents of the node as a string value.
 *
 * For an @ref OFXMLElement, setting it removes all children and creates a
 * @return A string with the string value
 * single child with the specified string value.
 */
- (OFString *)stringValue;
@property (nonatomic, copy) OFString *stringValue;

/*!
 * @brief Sets the string value of the receiver to the specified string.
 * The contents of the receiver as a decimal value.
 *
 * For an @ref OFXMLElement, it removes all children and creates a single child
 * with the specified string value.
 *
 * @param stringValue The new string value for the node
 */
- (void)setStringValue: (OFString *)stringValue;
@property (readonly, nonatomic) intmax_t decimalValue;

/*!
 * @brief Returns the contents of the receiver as a decimal value.
 * The contents of the receiver as a hexadecimal value.
 *
 * @return An integer with the decimal value
 */
- (intmax_t)decimalValue;
@property (readonly, nonatomic) uintmax_t hexadecimalValue;

/*!
 * @brief Returns the contents of the receiver as a hexadecimal value.
 *
 * @return An integer with the hexadecimal value
 */
- (uintmax_t)hexadecimalValue;

/*!
 * @brief Returns the contents of the receiver as a float value.
 * The contents of the receiver as a float value.
 *
 * @return A float with the float value
 */
- (float)floatValue;
@property (readonly, nonatomic) float floatValue;

/*!
 * @brief Returns the contents of the receiver as a double value.
 * The contents of the receiver as a double value.
 *
 * @return A double with the double value
 */
- (double)doubleValue;
@property (readonly, nonatomic) double doubleValue;

/*!
 * @brief Returns an OFString representing the OFXMLNode as an XML string.
 *
 * @return An OFString representing the OFXMLNode as an XML string
 */
- (OFString *)XMLString;
 * A string representing the node as an XML string.
 */
@property (readonly, nonatomic) OFString *XMLString;

- (instancetype)init OF_UNAVAILABLE;
- (instancetype)initWithSerialization: (OFXMLElement *)element OF_UNAVAILABLE;

/*!
 * @brief Returns an OFString representing the OFXMLNode as an XML string with
 *	  indentation.
 *
 * @param indentation The indentation for the XML string
 * @return An OFString representing the OFXMLNode as an XML string with