#include <Tag.h>
Collaboration diagram for Debtags::Tag:
Public Member Functions | |
Tag () throw () | |
Tag (const Tag &f) throw () | |
~Tag () throw () | |
Tag & | operator= (const Tag &f) throw () |
bool | operator== (const Tag &f) const throw () |
bool | operator< (const Tag &f) const throw () |
operator bool () const throw () | |
Facet | facet () const throw () |
std::string | name () const throw () |
Return the name of the tag, without the facet:: prefix. | |
std::string | fullname () const throw () |
Return the name of the tag, with the facet:: prefix. | |
std::string | sdesc () const throw () |
Return the short description of the tag. | |
std::string | ldesc () const throw () |
Return the long description of the tag. | |
std::string | fulldata () const throw () |
Return the full data record about the tag. | |
std::string | field (const std::string &name) const throw () |
Return the content of an arbitrary field. | |
Protected Member Functions | |
Tag (TagImpl *tag) throw () | |
Protected Attributes | |
TagImpl * | impl |
Friends | |
class | Vocabulary |
Tagcoll::Tag represents a Tag with all its informations. It is implemented via a reference-counted smart pointer, so it can be passed around freely and efficiently without worrying about memory management issues.
The class is normally instantiated using a Vocabulary:
Tag tag = vocabulary.getTag("made-of::lang:c++");
Tags can contain a "false" value, in which case using any of their methonds produce a null-pointer dereference segfault. The "null" tags are useful as "none" return values:
Tag tag = vocabulary.getTag("made-of"); if (!tag) throw ConsistencyCheckException("tag \"mytag\" has not been defined");
|
|
|
|
|
|
|
|
|
|
|
Return the content of an arbitrary field.
|
|
Return the full data record about the tag.
|
|
Return the name of the tag, with the facet:: prefix.
|
|
Return the long description of the tag.
|
|
Return the name of the tag, without the facet:: prefix.
|
|
|
|
|
|
|
|
|
|
Return the short description of the tag.
|
|
|
|
|