#include <pfs.h>
Public Member Functions | |
| virtual const char * | getString (const char *tagName)=0 |
| Get a string tag of the name tagName from the TagContainer. | |
| virtual void | setString (const char *tagName, const char *tagValue)=0 |
| Set or add a string tag of the name tagName. | |
| virtual void | removeTag (const char *tagName)=0 |
| Removes (if exists) a tag of the name tagName from the TagContainer. | |
| virtual TagIteratorPtr | getIterator () const =0 |
| Use TagIterator to iterate over all tags in the TagContainer. | |
A tag is "name"="value" pair.
Definition at line 135 of file pfs.h.
| virtual const char* pfs::TagContainer::getString | ( | const char * | tagName | ) | [pure virtual] |
Get a string tag of the name tagName from the TagContainer.
| tagName | name of the tag to retrieve |
| virtual void pfs::TagContainer::setString | ( | const char * | tagName, | |
| const char * | tagValue | |||
| ) | [pure virtual] |
Set or add a string tag of the name tagName.
| tagName | name of the tag to add or set | |
| tagValue | value of the tag |
| virtual void pfs::TagContainer::removeTag | ( | const char * | tagName | ) | [pure virtual] |
Removes (if exists) a tag of the name tagName from the TagContainer.
| tagName | name of the tag to remove |
| virtual TagIteratorPtr pfs::TagContainer::getIterator | ( | ) | const [pure virtual] |
Use TagIterator to iterate over all tags in the TagContainer.
TagIteratorPtr is a smart pointer, which destructs TagIterator when TagIteratorPtr is destructed. Use -> operator to access TagIterator members from a TagIteratorPtr object.
To iterate over all tags, use the following code: pfs::TagIteratorPtr it( frame->getTags()->getIterator() ); while( it->hasNext() ) { const char *tagName = it->getNext(); //Do something }
1.5.3