#include <support/Catalog.h>
Inheritance diagram for BMetaDataCatalog:

Public Member Functions | |
| BMetaDataCatalog (const SContext &context) | |
| virtual size_t | CountMetaEntriesLocked () const |
| Return the number of meta-data entries in the node. | |
| virtual status_t | CreateMetaEntry (const SString &name, const SValue &initialValue, sptr< IDatum > *outDatum=NULL) |
| Create a new piece of meta-data in the node. | |
| virtual status_t | LookupMetaEntry (const SString &entry, uint32_t flags, SValue *node) |
| Used by Walk() and others to find a meta-data entry in the node. | |
| virtual status_t | MetaEntryAtLocked (ssize_t index, uint32_t flags, SValue *key, SValue *entry) |
| Return a meta-data entry at a particular offset in the node. | |
| virtual status_t | RemoveMetaEntry (const SString &name) |
| Remove a piece of meta-data from the node. | |
| virtual status_t | RenameMetaEntry (const SString &old_name, const SString &new_name) |
| Change the name of a piece of meta-data in the node. | |
Protected Member Functions | |
| virtual | ~BMetaDataCatalog () |
|
|
|
|
|
|
|
|
Return the number of meta-data entries in the node.
Reimplemented from BGenericNode. |
|
||||||||||||||||
|
Create a new piece of meta-data in the node. The default implementation returns B_UNSUPPORTED to indicate that it can not create any new meta-data. Extend this to implement nodes that can contain additional meta-data. Reimplemented from BGenericNode. |
|
||||||||||||||||
|
Used by Walk() and others to find a meta-data entry in the node. At this point you MUST deal correctly with the REQUEST_DATA flag, by either returning an actual value or an object. Reimplemented from BGenericNode. |
|
||||||||||||||||||||
|
Return a meta-data entry at a particular offset in the node. Like LookupMetaEntry(), you must correctly respect the REQUEST_DATA flag.
Reimplemented from BGenericNode. |
|
|
Remove a piece of meta-data from the node. The default implementation returns B_UNSUPPORTED to indicate that it can not remove meta-data. Reimplemented from BGenericNode. |
|
||||||||||||
|
Change the name of a piece of meta-data in the node. The default implementation returns B_UNSUPPORTED to indicate that it can not rename meta-data. Reimplemented from BGenericNode. |