OTest2
A C++ testing framework
Classes | Public Member Functions | List of all members
OTest2::TagsStack Class Reference

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
 
TagsStackoperator= (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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ TagsStack() [1/2]

OTest2::TagsStack::TagsStack ( )

Ctor.

Definition at line 52 of file tagsstack.cpp.

◆ ~TagsStack()

OTest2::TagsStack::~TagsStack ( )

Dtor.

Definition at line 57 of file tagsstack.cpp.

◆ TagsStack() [2/2]

OTest2::TagsStack::TagsStack ( const TagsStack )
delete

Member Function Documentation

◆ fillTags()

void OTest2::TagsStack::fillTags ( std::vector< TagRecord > &  tags_) const

Fill the stack into a vector (used for glob evaluation)

Parameters
[out]tags_The tag vector

Definition at line 72 of file tagsstack.cpp.

◆ operator=()

TagsStack& OTest2::TagsStack::operator= ( const TagsStack )
delete

◆ popTags()

void OTest2::TagsStack::popTags ( )

Pop tags at the top of the stack.

Definition at line 67 of file tagsstack.cpp.

◆ pushTags()

void OTest2::TagsStack::pushTags ( const std::string &  name_,
const Tags tags_ 
)

Push tags.

Parameters
name_Name of the test object
tags_The tags

Definition at line 61 of file tagsstack.cpp.


The documentation for this class was generated from the following files: