#include <Tag.h>
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 () |
| const std::string & | name () const throw () |
| std::string | fullname () const throw () |
| const std::string & | sdesc () const throw () |
| const std::string & | ldesc () const throw () |
| const std::string & | fulldata () const throw () |
| void | sdesc (const std::string &desc) throw () |
| void | ldesc (const std::string &desc) throw () |
| void | fulldata (const std::string &desc) throw () |
Protected Member Functions | |
| Tag (FacetImpl *facet, const std::string &name) throw () | |
Protected Attributes | |
| TagImpl * | impl |
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 for memory management issues. The class is normally instantiated via Facet::obtainTag:
Tag can contain a "false" value, in which case using any of its methonds produce a null-pointer dereference segfault. The "null" tags are useful as "none" return values:Tag mytag = facet.getTag("printable"); if (!mytag) throw ConsistencyCheckException("tag \"printable\" has not been defined");
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.8