API Reference > OdRx Classes > OdRxModelHierarchyTreeBase Class > OdRxModelHierarchyTreeBase Methods > createDatabaseHierarchyTree Method > OdRxModelHierarchyTreeBase::createDatabaseHierarchyTree Method (OdRxObject*, bool, bool, bool)
OdRxModelHierarchyTreeBase::createDatabaseHierarchyTree Method (OdRxObject*, bool, bool, bool)
Syntax
C++
virtual OdRxModelTreeBaseNodePtr createDatabaseHierarchyTree(const OdRxObject* pDb, const bool create_properties_cache = true, 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 bool create_properties_cache = true 
[in] Flag to create cache of properties. The default value is true.  
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. The 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. The default value is false.  

Smart pointer to the root node of the hierarchical tree.

Creates a hierarchical tree for the database. 

 

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