|
ConceptualDesignTagDatabase
The design of core.data.db
Phase-Design IntroductionCore.data.db contains a database with 2 tables:
DetailsThe easiest class first: TagSearchResultA TagSearchResult object has member fields for each column of the tag database. It is used to store a result row of a query to the tag database. TagDbOpenHelperSee SQLiteOpenHelper. The TagDbOpenHelper helps accessing the database and provides a bit more comfort on using the databases. TagDbThe TagDb class encapsulates the tag database. It provides easy access to the database. The operations are:
Map features XML fileThe XML-file that contains all the information for all tags is parsed from the OSM wiki (link) using a ruby script. This script saves the gathered information in the XML file. The structure of the XML file is described in the article MapFeatures. HistoryDbThe HistoryDb encapsulates the history database. It provides the two operations needed for interaction with the database, namely:
|