Class | SimpleZDB::ItemInfo |
In: |
simplezdb.cpp
|
Parent: | Object |
Almost useless as a wrapper of original SlZDataBaseItemInfo, since we cannot refer to its members. It also aggregates names, value_types, titles, is_searchables. (titles and is_searchables are not available for now.) The index number of each array means "field" for read/write methods of SlZDataBase. Index 0 is always categories.
names | [R] |
Document-method: add_item_info, SimpleZDB::ItemInfo#add
Wrapper of SlZDataBaseItemInfo::addItemInfo(int, const char*, ItemType, const QString, bool). Possible values of item_type are:
ItemInfo::TEXT ItemInfo::UCHAR ItemInfo::USHORT ItemInfo::ULONG ItemInfo::COLOR ItemInfo::TIME ItemInfo::BINARY ItemInfo::CATEGORY
Besides, add each value to the instance variables names, value_types, titles, is_searchables.
Document-method: add_item_info, SimpleZDB::ItemInfo#add
Wrapper of SlZDataBaseItemInfo::addItemInfo(int, const char*, ItemType, const QString, bool). Possible values of item_type are:
ItemInfo::TEXT ItemInfo::UCHAR ItemInfo::USHORT ItemInfo::ULONG ItemInfo::COLOR ItemInfo::TIME ItemInfo::BINARY ItemInfo::CATEGORY
Besides, add each value to the instance variables names, value_types, titles, is_searchables.
Document-method: SimpleZDB::ItemInfo#each
Iterate the ItemInfo.
Document-method: SimpleZDB::ItemInfo#field(key)
Return the field (i.e, index) number of the corresponding name.
Document-method: SimpleZDB::ItemInfo#key(field)
Return the name corresponding the field (i.e., index) number.
Document-method: SimpleZDB::ItemInfo#value_type(key)
Return the value type of the corresponding name.