Specs
Beautiful C++ Test Framework
Loading...
Searching...
No Matches
SpecsCpp::SpecComponent Class Reference

#include <SpecComponent.h>

Inheritance diagram for SpecsCpp::SpecComponent:
SpecsCpp::ISpecComponent SpecsCpp::SpecGroup SpecsCpp::SpecSetup SpecsCpp::SpecTeardown SpecsCpp::SpecTest

Public Member Functions

 SpecComponent (SpecComponentType type, ISpecGroup *parentGroup, bool skip=false)
 
ISpecGroupgroup () const override
 
void set_group (ISpecGroup *group) override
 
ISpecDataValueCollectiondata () const override
 
ISpecTagCollectiontags () const override
 
SpecComponentType type () const override
 
bool skip () const override
 
void mark_skipped (bool skip=true) override
 
- Public Member Functions inherited from SpecsCpp::ISpecComponent
virtual ~ISpecComponent ()=default
 
virtual ISpecGroupgroup () const =0
 
virtual void set_group (ISpecGroup *group)=0
 
virtual ISpecDataValueCollectiondata () const =0
 
virtual ISpecTagCollectiontags () const =0
 
virtual SpecComponentType type () const =0
 
virtual bool skip () const =0
 
virtual void mark_skipped (bool skip=true)=0
 

Detailed Description

Definition at line 10 of file SpecComponent.h.

Constructor & Destructor Documentation

◆ SpecComponent()

SpecsCpp::SpecComponent::SpecComponent ( SpecComponentType  type,
ISpecGroup parentGroup,
bool  skip = false 
)
inline

Definition at line 20 of file SpecComponent.h.

21 : _type(type), _parentGroup(parentGroup), _skip(skip) {}
SpecComponentType type() const override
bool skip() const override

Member Function Documentation

◆ data()

ISpecDataValueCollection * SpecsCpp::SpecComponent::data ( ) const
inlineoverridevirtual

Implements SpecsCpp::ISpecComponent.

Definition at line 25 of file SpecComponent.h.

25{ return _metaDataPtr; }

◆ group()

ISpecGroup * SpecsCpp::SpecComponent::group ( ) const
inlineoverridevirtual

Implements SpecsCpp::ISpecComponent.

Definition at line 23 of file SpecComponent.h.

23{ return _parentGroup; }

Referenced by SpecsCpp::SpecGroup::add_group(), SpecsCpp::SpecGroup::foreach_group(), and set_group().

◆ mark_skipped()

void SpecsCpp::SpecComponent::mark_skipped ( bool  skip = true)
inlineoverridevirtual

Implements SpecsCpp::ISpecComponent.

Definition at line 29 of file SpecComponent.h.

29{ _skip = skip; }

◆ set_group()

void SpecsCpp::SpecComponent::set_group ( ISpecGroup group)
inlineoverridevirtual

Implements SpecsCpp::ISpecComponent.

Definition at line 24 of file SpecComponent.h.

24{ _parentGroup = group; }
ISpecGroup * group() const override

◆ skip()

bool SpecsCpp::SpecComponent::skip ( ) const
inlineoverridevirtual

Implements SpecsCpp::ISpecComponent.

Definition at line 28 of file SpecComponent.h.

28{ return _skip; }

Referenced by mark_skipped().

◆ tags()

ISpecTagCollection * SpecsCpp::SpecComponent::tags ( ) const
inlineoverridevirtual

Implements SpecsCpp::ISpecComponent.

Definition at line 26 of file SpecComponent.h.

26{ return _tagsPtr; }

◆ type()

SpecComponentType SpecsCpp::SpecComponent::type ( ) const
inlineoverridevirtual

Implements SpecsCpp::ISpecComponent.

Definition at line 27 of file SpecComponent.h.

27{ return _type; }

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