#include <TagDB.h>
Inheritance diagram for Debtags::TagDB:
Public Member Functions | |
TagDB (bool editable=false) throw (SystemException, ConsistencyCheckException) | |
Create a new TagDB. | |
~TagDB () throw () | |
TagSet | getTags () const throw () |
Get all the tags mentioned in the database. | |
void | load (bool facet_only=true) throw (FileException, ParserException) |
Load the database from disk if facet_only is set to true, then all tags without facets will be stripped on loading; if facet_only is set to false, then for all tags with a facet the loader will add a new tag with only the facet name. | |
void | savePatch () throw (FileException, ParserException, SystemException) |
Save in the state storage directory a patch that can be used to turn the system database into the collection given. | |
void | savePatch (const InputMerger< Package, Tag > &collection) throw (FileException, ParserException, SystemException) |
Save in the state storage directory a patch to turn the system database into the collection given. | |
void | sendPatch () throw (FileException, ParserException, SystemException, ConsistencyCheckException) |
Send to the central archive a patch that can be used to turn the system database into the collection given. | |
void | sendPatch (const InputMerger< Package, Tag > &collection) throw (FileException, ParserException, SystemException, ConsistencyCheckException) |
Send to the central archive a patch to turn the system database into the collection given. | |
Static Public Member Functions | |
const std::string & | statedir () throw () |
Return the full path of the state storage directory (usually ~/.debtags). | |
const std::string & | path_tagdb () throw () |
Returns the path to the current tag database (usually /var/lib/debtags/package-tags). | |
bool | hasTagDatabase () throw () |
Check if the tag database has been created (i.e. | |
void | outputFile (const std::string &name, TagcollConsumer< std::string, std::string > &cons, bool facet_only=true) throw (FileException, ParserException) |
Output the database in the given file to a TagcollConsumer. | |
void | outputFile (const std::string &name, TagcollConsumer< std::string, Tag > &cons, bool facet_only=true) throw (FileException, ParserException) |
Output the database in the given file to a TagcollConsumer. | |
void | outputFile (const std::string &name, TagcollConsumer< Package, Tag > &cons, bool facet_only=true) throw (FileException, ParserException) |
Output the database in the given file to a TagcollConsumer. | |
void | outputSystem (TagcollConsumer< std::string, std::string > &cons, bool facet_only=true) throw (FileException, ParserException) |
Output the current Debian tags database to a TagcollConsumer. | |
void | outputSystem (TagcollConsumer< std::string, Tag > &cons, bool facet_only=true) throw (FileException, ParserException) |
Output the current Debian tags database to a TagcollConsumer. | |
void | outputSystem (TagcollConsumer< Package, Tag > &cons, bool facet_only=true) throw (FileException, ParserException) |
Output the current Debian tags database to a TagcollConsumer. | |
void | outputPatched (TagcollConsumer< std::string, std::string > &cons, bool facet_only=true) throw (FileException, ParserException) |
Output the current Debian tags database, patched with local patch, to a TagcollConsumer. | |
void | outputPatched (TagcollConsumer< std::string, Tag > &cons, bool facet_only=true) throw (FileException, ParserException) |
Output the current Debian tags database, patched with local patch, to a TagcollConsumer. | |
void | outputPatched (TagcollConsumer< Package, Tag > &cons, bool facet_only=true) throw (FileException, ParserException) |
Output the current Debian tags database, patched with local patch, to a TagcollConsumer. |
TadDB provides read access to the local Debtags tag database via its various output* methods.
|
Create a new TagDB.
|
|
|
|
Get all the tags mentioned in the database.
|
|
Check if the tag database has been created (i.e. if something equivalend to debtags update has been run) |
|
Load the database from disk if facet_only is set to true, then all tags without facets will be stripped on loading; if facet_only is set to false, then for all tags with a facet the loader will add a new tag with only the facet name.
|
|
Output the database in the given file to a TagcollConsumer.
|
|
Output the database in the given file to a TagcollConsumer.
|
|
Output the database in the given file to a TagcollConsumer.
|
|
Output the current Debian tags database, patched with local patch, to a TagcollConsumer.
|
|
Output the current Debian tags database, patched with local patch, to a TagcollConsumer.
|
|
Output the current Debian tags database, patched with local patch, to a TagcollConsumer.
|
|
Output the current Debian tags database to a TagcollConsumer.
|
|
Output the current Debian tags database to a TagcollConsumer.
|
|
Output the current Debian tags database to a TagcollConsumer.
|
|
Returns the path to the current tag database (usually /var/lib/debtags/package-tags).
|
|
Save in the state storage directory a patch to turn the system database into the collection given.
|
|
Save in the state storage directory a patch that can be used to turn the system database into the collection given.
|
|
Send to the central archive a patch to turn the system database into the collection given.
|
|
Send to the central archive a patch that can be used to turn the system database into the collection given.
|
|
Return the full path of the state storage directory (usually ~/.debtags).
|