|
DIE Engine
|
#include <tags.h>
Public Member Functions | |
| Tags () | |
| void | init () |
| Clear the database and forget the current path. | |
| void | clear () |
| Remove all the tags. | |
| bool | load (const QString &filename) |
| Load tags from a file and merge them into the database. | |
| bool | save (const QString &filename) |
| Save all the tags to a file. | |
| int | findByName (const char *name) const |
| Find a tag by its name. | |
| int | findOrAddByName (const char *name) |
| Find a tag by its name, create it when missing. | |
| const char * | nameForTag (uint16_t tag) const |
| Name of a tag, "None" for id 0 or out of range ids. | |
| const char * | valueForTag (uint16_t tag) const |
| Value of a tag, "" for id 0 or out of range ids. | |
Public Attributes | |
| QString | path |
| QList< Tag > | tags |
Tags database.
| Tags::Tags | ( | ) |
| void Tags::clear | ( | ) |
Remove all the tags.
| int Tags::findByName | ( | const char * | name | ) | const |
Find a tag by its name.
| int Tags::findOrAddByName | ( | const char * | name | ) |
Find a tag by its name, create it when missing.
| void Tags::init | ( | ) |
Clear the database and forget the current path.
| bool Tags::load | ( | const QString & | filename | ) |
Load tags from a file and merge them into the database.
| filename | path of the tags file |
| const char * Tags::nameForTag | ( | uint16_t | tag | ) | const |
Name of a tag, "None" for id 0 or out of range ids.
| bool Tags::save | ( | const QString & | filename | ) |
Save all the tags to a file.
| filename | path of the tags file |
| const char * Tags::valueForTag | ( | uint16_t | tag | ) | const |
Value of a tag, "" for id 0 or out of range ids.
| QString Tags::path |
| QList<Tag> Tags::tags |