libtaginfo
0.2.1
|
A simple, value based wrapper round Info. More...
#include <taginfo.h>
Public Member Functions | |
InfoRef (const String &filename) | |
InfoRef (const String &filename, MediaFileType format) | |
InfoRef (const String &filename, const String &mime) | |
~InfoRef () | |
Info * | info () const |
bool | is_valid () const |
bool | load () const |
bool | save () |
A simple, value based wrapper round Info.
InfoRef::InfoRef | ( | const String & | filename | ) |
Create a InfoRef object from a media file.
This will internally create a Info object and takes care of its deletion
filename | is the path to a media file. |
This is a recommended wrapper for RAII creation. If you want to use a pointer to InfoRef, then you can also avoid it and use Info directly.
InfoRef::InfoRef | ( | const String & | filename, |
MediaFileType | type | ||
) |
Create a InfoRef object from a media file.
This will internally create a Info object and takes care of its deletion
filename | is the path to a media file. |
type | MediaFileType of the media file. |
This is a recommended wrapper for RAII creation. If you want to use a pointer to InfoRef, then you can also avoid it and use Info directly.
InfoRef::InfoRef | ( | const String & | filename, |
const String & | mime | ||
) |
Create a InfoRef object from a media file.
This will internally create a Info object and takes care of its deletion
filename | is the path to a media file. |
mime | Mime type of the media file. |
This is a recommended wrapper for RAII creation. If you want to use a pointer to InfoRef, then you can also avoid it and use Info directly.
InfoRef::~InfoRef | ( | ) |
Destructor for InfoRef
TagInfo::Info * InfoRef::info | ( | ) | const |
bool InfoRef::is_valid | ( | ) | const |
Check wether the info object pointers could be created internally
bool InfoRef::load | ( | ) | const |
This function forwards the load call to the internal Info object
bool InfoRef::save | ( | void | ) |
This function forwards the save call to the internal Info object