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.

Methods

add   add_item_info   each   field   include?   name   new   size   value_type  

Included Modules

Enumerable

Attributes

names  [R] 

Public Class methods

Document-method: ItemInfo.new

Create ItemInfo instance.

Public Instance methods

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#field(key)

Return the field (i.e, index) number of the corresponding name.

Document-method: SimpleZDB::ItemInfo#include?

If item_info includes the name, return true.

Document-method: SimpleZDB::ItemInfo#key(field)

Return the name corresponding the field (i.e., index) number.

Document-method: SimpleZDB::ItemInfo#size

Return the size of the ItemInfo.

Document-method: SimpleZDB::ItemInfo#value_type(key)

Return the value type of the corresponding name.

[Validate]