5.1 ODM Commands

5.2 Example of an Object Class for an ODM Database

The following is an example of the object class definition for the Customized Device Database (CuDv):

# odmshow CuDv
class CuDv {
        char name[16];                               /* offset: 0xc ( 12) */
        short status;                                /* offset: 0x1c ( 28) */
        short chgstatus;                             /* offset: 0x1e ( 30) */
        char ddins[16];                              /* offset: 0x20 ( 32) */
        char location[16];                           /* offset: 0x30 ( 48) */
        char parent[16];                             /* offset: 0x40 ( 64) */
        char connwhere[16];                          /* offset: 0x50 ( 80) */
        link PdDv PdDv uniquetype PdDvLn[48];        /* offset: 0x60 ( 96) */
        };
/*
        descriptors:    8
        structure size:     0x98 (152) bytes
        data offset:    0x20001cd8
        population:     50 objects (50 active, 0 deleted)
*/

5.3 Quiz