- add define to each file in schemas folder
- define tree
- models
- danhmucsach.h
- datetime.h
- dausach.h
- docgia.h
- muontra.h
- General function:
-
Cast to strings - Write to file
- Read from file
- Fix: model casting type
<type, class>
-
-
Inheritable methods:
- cast (string -> type)
- cast (type -> string)
-
Each model: Define convert to its type Typically: save point using index
-
Base model
-
{tmp}read string (look like for each) -
{tmp}write string (look like for each) - base casting
-
-
Model for each one
- merge_string
refresh:
- doc file
- for each line covert to type
commit:
- for each item
- write line to file
- Notes:
- Load from db: free old data, create new one (accept lossing data)
- Save to db: For each data write to file
- Flow
- Read
- Cast string -> type
- Thêm xoá sửa các thứ ...
- Cast type -> string
- Write
Prototype
Model<LinkedList, DanhMucSachSchema> model = new Model<LinkedList, DanhMucSachSchema>();