kuvbur / AddOn_SomeStuff

Writing values of parameters of GDL objects to properties
GNU General Public License v3.0
12 stars 3 forks source link

Добавить вывод полного имени класса (с учётом родительских веток) #94

Closed kuvbur closed 1 month ago

kuvbur commented 3 months ago
static void GatherAllDescendantOfClassification (const API_ClassificationItem& item, GS::Array<API_ClassificationItem>& allDescendant)
{
    GS::Array<API_ClassificationItem> directChildren;
    ASSERT_NO_ERROR (ACAPI_Classification_GetClassificationItemChildren (item.guid, directChildren));
    for (UIndex i = 0; i < directChildren.GetSize (); ++i) {
        allDescendant.Push (directChildren[i]);
        GatherAllDescendantOfClassification (directChildren[i], allDescendant);
    }
}