ObjFW  Diff

Differences From Artifact [4ef5a34a02]:

To Artifact [989b553d8c]:


16
17
18
19
20
21
22
23
24


25
26
27
28


29
30
31


32
33
34
35
36


37
38

39
40
41
16
17
18
19
20
21
22


23
24
25
26


27
28
29


30
31
32
33
34


35
36
37

38
39
40
41







-
-
+
+


-
-
+
+

-
-
+
+



-
-
+
+

-
+




#import "OFObject.h"

#define OF_SERIALIZATION_NS @"https://webkeks.org/objfw/serialization"

@class OFXMLElement;

/**
 * \brief A protocol for serializing objects.
/*!
 * @brief A protocol for serializing objects.
 */
@protocol OFSerialization
/**
 * \brief Initializes the object with the specified XML element serialization.
/*!
 * @brief Initializes the object with the specified XML element serialization.
 *
 * \param element An OFXMLElement with the serialized object
 * \return An initialized object
 * @param element An OFXMLElement with the serialized object
 * @return An initialized object
 */
- initWithSerialization: (OFXMLElement*)element;

/**
 * \brief Serializes the object into an XML element.
/*!
 * @brief Serializes the object into an XML element.
 *
 * \return The object serialized into an XML element
 * @return The object serialized into an XML element
 */
- (OFXMLElement*)XMLElementBySerializing;
@end