ArchiveObject.opIndex

An operator version of ArchiveObject.expectChild.

  1. ArchiveObject opIndex(string childName)
    class ArchiveObject
    final
    opIndex
    (
    string childName
    )
  2. ArchiveObject opIndex(Names childNames)

Examples

auto obj = new ArchiveObject();
obj.addChild(new ArchiveObject("Foo"));

obj["Foo"].addValueAs!int(69);
assert(obj["Foo"].getValueAs!int(0) == 69);

Meta