OTest2
A C++ testing framework
|
Stack of assigned tags. More...
#include <tagsstack.h>
Classes | |
struct | Impl |
struct | TagRecord |
One record of the tag stack. More... | |
Public Member Functions | |
TagsStack () | |
Ctor. More... | |
~TagsStack () | |
Dtor. More... | |
TagsStack (const TagsStack &)=delete | |
TagsStack & | operator= (const TagsStack &)=delete |
void | pushTags (const std::string &name_, const Tags &tags_) |
Push tags. More... | |
void | popTags () |
Pop tags at the top of the stack. More... | |
void | fillTags (std::vector< TagRecord > &tags_) const |
Fill the stack into a vector (used for glob evaluation) More... | |
Stack of assigned tags.
The tags are inherited from parent objects (test cases inherit tags from the suite). This stack keeps current tag set.
Definition at line 36 of file tagsstack.h.
OTest2::TagsStack::TagsStack | ( | ) |
Ctor.
Definition at line 52 of file tagsstack.cpp.
OTest2::TagsStack::~TagsStack | ( | ) |
Dtor.
Definition at line 57 of file tagsstack.cpp.
|
delete |
void OTest2::TagsStack::fillTags | ( | std::vector< TagRecord > & | tags_ | ) | const |
Fill the stack into a vector (used for glob evaluation)
[out] | tags_ | The tag vector |
Definition at line 72 of file tagsstack.cpp.
void OTest2::TagsStack::popTags | ( | ) |
Pop tags at the top of the stack.
Definition at line 67 of file tagsstack.cpp.
void OTest2::TagsStack::pushTags | ( | const std::string & | name_, |
const Tags & | tags_ | ||
) |
Push tags.
name_ | Name of the test object |
tags_ | The tags |
Definition at line 61 of file tagsstack.cpp.