// Write some dummy tags. KaxTags &tags = GetChild(*kax_segment); KaxTag &tag = GetChild(tags); KaxTagTargets &targets = GetChild(tag); *(static_cast(&GetChild(targets))) = 1234; *(static_cast(&GetChild(targets))) = 5678; KaxTagGeneral &general = GetChild(tag); *(static_cast(&GetChild(general))) = cstr_to_UTFstring("Subject"); *(static_cast(&GetChild(general))) = cstr_to_UTFstring("Bibliography"); *(static_cast(&GetChild(general))) = "ger"; tags.Render(*out); // Also index our tags. kax_seekhead->IndexThis(tags, *kax_segment);