19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
OF_ASSUME_NONNULL_BEGIN
#define OF_SERIALIZATION_NS @"https://objfw.nil.im/serialization"
@class OFXMLElement;
/*!
* @protocol OFSerialization OFSerialization.h ObjFW/OFSerialization.h
*
* @brief A protocol for serializing objects.
*/
@protocol OFSerialization
/*!
* @brief The object serialized into an XML element.
*/
@property (readonly, nonatomic) OFXMLElement *XMLElementBySerializing;
/*!
* @brief Initializes the object with the specified XML element serialization.
*
* @param element An OFXMLElement with the serialized object
* @return An initialized object
*/
- (instancetype)initWithSerialization: (OFXMLElement *)element;
@end
|
|
|
|
|
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
OF_ASSUME_NONNULL_BEGIN
#define OF_SERIALIZATION_NS @"https://objfw.nil.im/serialization"
@class OFXMLElement;
/**
* @protocol OFSerialization OFSerialization.h ObjFW/OFSerialization.h
*
* @brief A protocol for serializing objects.
*/
@protocol OFSerialization
/**
* @brief The object serialized into an XML element.
*/
@property (readonly, nonatomic) OFXMLElement *XMLElementBySerializing;
/**
* @brief Initializes the object with the specified XML element serialization.
*
* @param element An OFXMLElement with the serialized object
* @return An initialized object
*/
- (instancetype)initWithSerialization: (OFXMLElement *)element;
@end
|