MeVisLabToolboxReference
macx::FileMetadata Class Reference

File Metadata related functions (uses extended attributes) More...

#include <macFileMetadata.h>

List of all members.

Static Public Member Functions

static bool hasData (const std::string &filename, const std::string &key)
 Check for metadata identified by key associated with path.
static bool removeData (const std::string &filename, const std::string &key)
 Remove metadata identified by key associated with path.
static bool updateData (const std::string &filename, const std::string &key, const void *value, size_t size)
 Associate key and value together as metadata of path. Key must be an UTF-8 string.
static ByteDataPtr getData (const std::string &filename, const std::string &key)
 Retrieve data from the metadata identified by key associated with path. Key must be an UTF-8 string.

Detailed Description

File Metadata related functions (uses extended attributes)

Definition at line 17 of file macFileMetadata.h.


Member Function Documentation

static ByteDataPtr macx::FileMetadata::getData ( const std::string &  filename,
const std::string &  key 
) [static]

Retrieve data from the metadata identified by key associated with path. Key must be an UTF-8 string.

static bool macx::FileMetadata::hasData ( const std::string &  filename,
const std::string &  key 
) [static]

Check for metadata identified by key associated with path.

static bool macx::FileMetadata::removeData ( const std::string &  filename,
const std::string &  key 
) [static]

Remove metadata identified by key associated with path.

static bool macx::FileMetadata::updateData ( const std::string &  filename,
const std::string &  key,
const void *  value,
size_t  size 
) [static]

Associate key and value together as metadata of path. Key must be an UTF-8 string.


The documentation for this class was generated from the following file: