API Reference > OdRx Classes > OdRxModelHierarchyTreeBase Class > OdRxModelHierarchyTreeBase Methods > createDatabaseHierarchyTree Method > OdRxModelHierarchyTreeBase::createDatabaseHierarchyTree Method (OdRxObject*, std::set<OdString>*, bool, bool)
OdRxModelHierarchyTreeBase::createDatabaseHierarchyTree Method (OdRxObject*, std::set<OdString>*, bool, bool)
Syntax
C++
virtual OdRxModelTreeBaseNodePtr createDatabaseHierarchyTree(const OdRxObject* pDb, const std::set<OdString>* collected_properties, const bool class_dependent_hierarchy = false, const bool class_dependent_property = false);
Parameters 
Description 
const OdRxObject* pDb 
[in] Pointer to the source database object.  
const std::set<OdString>* collected_properties 
[in] A pointer to a set of property names that will be added to the cache. If NULL, all properties will be cached.  
const bool class_dependent_hierarchy = false 
[in] Flag to optimize the creation of a hierarchical tree. It can only be set to true if the properties of database objects with a hierarchical attribute are statically dependent on the object type. default value is false.  
const bool class_dependent_property = false 
[in] Flag to optimize cache creation. It can be set to true only if all properties of database objects are statically dependent on the object type. default value is false.  

Returns a smart pointer to the root node of the hierarchical tree.

Creates a hierarchical tree for the database. 

 

Copyright © 2002–2020. Open Design Alliance. All rights reserved.