mirror of
https://github.com/borgesdan/xn65
synced 2024-12-29 21:54:47 +01:00
Comentários em ContentSerializer
This commit is contained in:
parent
066034e9f5
commit
82a72bf018
@ -134,7 +134,7 @@ namespace xna {
|
||||
ContentItem() {
|
||||
opaqueData = std::make_shared<OpaqueDataDictionary>();
|
||||
}
|
||||
|
||||
|
||||
//Gets or sets the name of the content item.
|
||||
std::string Name() const { return name; }
|
||||
//Gets or sets the identity of the content item.
|
||||
|
@ -4,12 +4,19 @@
|
||||
#include <string>
|
||||
|
||||
namespace xna {
|
||||
//A custom Attribute that marks a field or property to control how it is serialized or to indicate that protected or private data should be included in serialization.
|
||||
struct ContentSerializerAttribute {
|
||||
//Gets or sets the XML element name (default=name of the managed type member).
|
||||
std::string ElementName;
|
||||
//Gets or sets the XML element name for each item in a collection (default = "Item").
|
||||
std::string CollectionItemName;
|
||||
//Gets or sets a value idicating whether to write member contents directly into the current XML context rather than wrapping the member in a new XML element (default=false).
|
||||
bool FlatternContent{ false };
|
||||
//Indicates whether to write this element if the member is null and skip past it if not found when deserializing XML (default=false).
|
||||
bool Optional{ false };
|
||||
//Get or set a value indicating whether this member can have a null value (default=true).
|
||||
bool AllowNull{ true };
|
||||
//Indicates whether this member is referenced from multiple parents and should be serialized as a unique ID reference (default=false).
|
||||
bool SharedResource{ false };
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user