GSAPI::DatabaseGraph class

This is a support singleton class which builds the database graph of the ARCHICAD databases.

The constructor changes to the floor plan (this is the starting point of the graph) and lists all connected databases (sections and dependent details) there. These databases are visited in the next step and yet again new connecting databases are sought (dependent details only this time). This is repeated as long as necessary to map all dependent details while only noting but not following links to databases already seen.

After the connected databases (floor plan, sections, dependent details) are added to the graph, the remaining databases (independent details, layouts, master layouts) are added connecting to the starting node (the floor plan).

It is important to note that the singleton does not follow database changes, it only represents the database structure at the time point of it’s creation.

The class exports only one public method: the SelectDatabases () method. It expects an IDatabaseSelector object and returns a list of API_DatabaseInfo structures selected by the functor.

Requirements

Namespace: GSAPI

Header: DatabaseGraph.hpp

Source: DatabaseGraph.cpp

Version: API 10.21 or later

See Also

IDatabaseSelector interface | DatabaseGraphNode class