力为的技术博客

联系 聚合 管理
  154 Posts :: 1 Stories :: 561 Comments :: 0 Trackbacks
I'll explain it later if I have any time.:)

propertySys.JPG

Property System

It’s the UI present for inner DB. In order to avoid hard coding the UI property list, we use the XML configuration file to realize the flexibility of property system.

 

Questions

  1. The identification of property items

▪ The items in DB layer are identified by enum

▪ The items in UI layer are identified by integer with the same value as DB layer

  1. Grouped items and point property

 point property is a group of three double property items, and each items’ id is generated through point group id.

 Add group key word to XML setting .

  1. Efficiency

 XML file should be parsed only once

 One property list is associated with one property builder

 If we have many property lists, do we need multi builder factory?

▪ Memory consideration

  1. Data exchange between UI and DB

▪ The initialization of the property value should be delivered to DB layer, using std::map

▪ The response to UI value change should also be delivered to DB layer, because the DB side knows what to response.

▪ The response to the DB value change should be encapsulated in the UI layer.

  1. Decouple property system with 3rd part library

▪ Encapsulate the property list control

 

Constraints

I believe abstract class is a good way to realize constraints of DB and UI.

  1. DB layer
  2. UI layer
  3. XML key words

Architecture
   TODO

posted on 2006-08-25 17:50 力为 阅读(930) 评论(0)  编辑 收藏 引用

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   博问   Chat2DB   管理