[interfacekit] BPropertyInfo

I spend this morning some time to check how a BPropertyInfo is flattened,
here's the result for BControl (not such a good choice as there are no
compound types, however I added at the bottom how the layout looks if there
are). I'm implementing this now in my own BPropertyInfo class. How is the
OBOS BPropertyInfo class going BTW?

// Header
4               6               chunk count
4               1               version

// Start of property_info chunks, without types
8               "Enabled"       name
58              ""              usage ("Returns whether or not the BControl is 
currently enabled.")
4               0               extra_data
4               PGET            commands
4               0               end commands list
4               1               specifiers
4               0               end specifiers list

8               "Enabled"       name
34              ""              usage ("Enables or disables the BControl.")
4               0               extra_data
4               PSET            commands
4               0               end commands list
4               1               specifiers
4               0               end specifiers list

6               "Label" name
30              ""              usage ("Returns the BControl's label.")
4               0               extra_data
4               PGET            commands
4               0               end commands list
4               1               specifiers
4               0               end specifiers list

6               "Label" name
32              ""              usage ("Sets the label of the BControl.")
4               0               extra_data
4               PSET            commands
4               0               end commands list
4               1               specifiers
4               0               end specifiers list

6               "Value" name
30              ""              usage ("Returns the BControl's value.")
4               0               extra_data
4               PGET            commands
4               0               end commands list
4               1               specifiers
4               0               end specifiers list

6               "Value" name
32              ""              usage ("Sets the value of the BControl.")
4               0               extra_data
4               PSET            commands
4               0               end commands list
4               1               specifiers
4               0               end specifiers list

// Start of property_info chunks, only types
4               BOOL            type
4               0               end type list
4               0               end compound list

4               BOOL            type
4               0               end type list
4               0               end compound list

4               CSTR            type
4               0               end type list
4               0               end compound list

4               LONG            type
4               0               end type list
4               0               end compound list

4               LONG            type
4               0               end type list
4               0               end compound list

If there would have been compound types, the layout of the type chunks would
be like this

4               BOOL            type
4               0               end type list
5               "name"  compound name
4               LONG            compound type
4               0               end compound list

Marc Flerackers (mflerackers@xxxxxxxxxx)
Software Engineer
ANDROME NV


Other related posts: