1 // AttributeIndex.h 2 3 #ifndef ATTRIBUTE_INDEX_H 4 #define ATTRIBUTE_INDEX_H 5 6 #include "Index.h" 7 8 class Attribute; 9 10 class AttributeIndex : public Index { 11 public: 12 AttributeIndex(Volume *volume, const char *name, uint32 type, 13 bool fixedKeyLength, size_t keyLength = 0); 14 virtual ~AttributeIndex(); 15 16 virtual status_t Added(Attribute *attribute) = 0; 17 virtual bool Removed(Attribute *attribute) = 0; 18 virtual status_t Changed(Attribute *attribute, 19 const uint8 *oldKey, size_t length) = 0; 20 }; 21 22 #endif // ATTRIBUTE_INDEX_H 23