XmlArchive.unarchiveReference

Unarchives the reference associated with the given key.

A reference is reference to another value. For example, if an object is archived more than once, the first time it's archived it will actual archive the object. The second time the object will be archived a reference will be archived instead of the actual object.

This method is also used when unarchiving a pointer that points to a value that has been or will be unarchived as well.

class XmlArchive(U = char)
Id
unarchiveReference
(
string key
)

Parameters

key string

the key associated with the reference

Return Value

Type: Id

the id the reference refers to

Examples

auto archive = new XmlArchive!();
archive.beginUnarchiving(data);
auto id = unarchiveReference("foo");

// unarchive the value with the associated id

Meta