Index

dkAttrGroupDef

Purpose:

The dkAttrGroupDef class provides a generic interface to attribute group definition functions. It must be subclassed for each datastore implementation, as in the following example:

DKAttrGroupDefICM and so forth. 

Class summary:

class DKEXPORT dkAttrGroupDef
 {
 public:
    dkAttrGroupDef();
    virtual ~dkAttrGroupDef();
virtual void setDatastore(dkDatastore* ds);
    virtual dkDatastore* getDatastore();
    virtual DKString  getName();
    virtual void setName(const char* attrName);
    virtual DKString datastoreType() const;
    virtual dkCollection* listAttrs();
    virtual DKString* listAttrNames(long& arraySize);
    virtual void addAttr(dkAttrDef* attrObj);
    virtual void removeAttr(const char* attrName);
    virtual void clearCache();
 };

Members:

Constructors and destructor
dkAttrGroupDef();
virtual ~dkAttrGroupDef();

Member functions

setDatastore
Sets the datastore to which this attribute group is associated.
virtual void setDatastore(dkDatastore* ds); 

getDatastore
Gets the datastore.
virtual dkDatastore* getDatastore(); 

getName
Get attribute group name.
virtual DKString  getName();

setName
Set attribute group name.
virtual setName(const char* attrName);

datastoreType
Gets the datastore type.
virtual DKString datastoreType() const; 

listAttrs
List the attributes that are in the attribute group.
virtual dkCollection* listAttrs();

listAttrNames
List attribute names.
virtual DKString* listAttrNames(long& arraySize); 
 
This function returns an array of DKString objects and that arraySize will contain the number of elements in the returned array.
 

addAttr
Add an attribute to this attribute group .
virtual void addAttr(dkAttrDef* attrObj); 

removeAttr
Remove an attribute from this attribute group (memory only).
virtual void removeAttr(const char* attrName); 

clearCache
Clears the attribute group cache.
virtual void clear cache(); 

(c) Copyright International Business Machines Corporation 1996, 2003. IBM Corp. All rights reserved.