力为的博客
技术那些事。
posts - 89,comments - 434,trackbacks - 0
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 力为 阅读(536) 评论(0)  编辑 收藏 引用 所属分类: Venus Plan


标题  
姓名  
主页
验证码 *
内容(提交失败后,可以通过“恢复上次提交”恢复刚刚提交的内容)  
  登录  使用高级评论  新用户注册  返回页首  恢复上次提交      
[使用Ctrl+Enter键可以直接提交]
.NET频道  博客园社区  闪存
网站导航: