Class AppAttributeData

GEOS-SC:  Library resapp_lib: Class AppAttributeData


AppAttributeData objects contain various data about attributes of built-in application objects. These are statically defined alongside ResidentApplication objects, and should never be freed.

#include <resapp/appattr.h>


Class Data and Methods

public:
AppAttributeData(ResidentApplication *app, AppAttribute attr, uint16 attrSize, const void *data);
AppAttribute GetAttrType(void) const;
uint16 GetAttrDataSize(void) const;
const void *GetAttrData(void) const;
protected:

Inherited Data and Methods:

This class does not inherit from any other class.

Back to the top of AppAttributeData


Ancestors

This class does not inherit from any other class.

Back to the top of AppAttributeData


Descendants

Class is not inherited by any others.

Back to the top of AppAttributeData


Descriptions of Class Data and Methods


AppAttributeData(ResidentApplication *app, AppAttribute attr, uint16 attrSize, const void *data);

Constructor for AppAttributeData class. This constructor automatically adds this attribute to the supplied ResidentApplication object.

Parameters:

in app
The ResidentApplication object this data is associated with.
in attr
The AppAttribute this object encapsulates.
in attrSize
The size of the data held by this object (in bytes).
in data
A pointer to the data itself.

Prototype:

    AppAttributeData(ResidentApplication *app,
                     AppAttribute attr,
                     uint16 attrSize,
                     const void *data);

Back to the top of AppAttributeData


AppAttribute GetAttrType(void) const;

Returns the AppAttribute associated with this object.

Return value: The AppAttribute whose data is referenced by this object.

See also: GetAttrData()

Prototype:

    AppAttribute GetAttrType(void) const;

Back to the top of AppAttributeData


uint16 GetAttrDataSize(void) const;

Returns the size of the data whose pointer is stored in this object.

Return value: The size of the data.

See also: GetAttrData()

Prototype:

    uint16 GetAttrDataSize(void) const;

Back to the top of AppAttributeData


const void *GetAttrData(void) const;

Returns a pointer to the data associated with this object.

Return value: A pointer to the data associated with this object.

See also: GetAttrDataSize()

Prototype:

    const void *GetAttrData(void) const;

Back to the top of AppAttributeData


Generated from source by Geoworks on Sat Dec 12 18:30:38 1998 .