WYRDTEK Home Features Reference Downloads About



int es_mbd_getclassbyid( struct es_mbd *def, unsigned classid, struct es_mbc **res );


struct es_mbd *def Database definition.
unsigned classid Class integer identifier.
struct es_mbc **res Assigned result. Passed by reference.

Return Codes

ES_ERROR_NONE Success. No errors.
ES_ERROR_UNKNOWNCLASS No class exists that corresponds to the class integer identifier classid.


Retrieves the class from the definition def, corresponding to the class integer identifier classid.

Each class is assigned an integer identifier known as a class-id. Classids fall in the range 0..N-1, where N is the total number of classes in a database. es_mbd_getnumclasses() returns N.

es_mbc_getclassid() returns the classid given a class definition object.

[Back To Reference] [Back To Reference/es_mbd]