Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
LineGenerator Class Reference
Inheritance diagram for LineGenerator:
Collaboration diagram for LineGenerator:

Public Member Functions

 LineGenerator ()
 
std::string const & get () const override
 
bool next () override
 
- Public Member Functions inherited from Catch::Generators::IGenerator< std::string >
virtual ~IGenerator ()=default
 
virtual ~IGenerator ()=default
 
- Public Member Functions inherited from Catch::Generators::GeneratorUntypedBase
 GeneratorUntypedBase ()=default
 
virtual ~GeneratorUntypedBase ()
 
 GeneratorUntypedBase ()=default
 
virtual ~GeneratorUntypedBase ()
 

Additional Inherited Members

- Public Types inherited from Catch::Generators::IGenerator< std::string >
using type
 

Detailed Description

Definition at line 14 of file 301-Gen-MapTypeConversion.cpp.

Constructor & Destructor Documentation

◆ LineGenerator()

LineGenerator::LineGenerator ( )
inline

Definition at line 18 of file 301-Gen-MapTypeConversion.cpp.

18 {
19 m_stream.str("1\n2\n3\n4\n");
20 if (!next()) {
21 throw Catch::GeneratorException("Couldn't read a single line");
22 }
23 }
Here is the call graph for this function:

Member Function Documentation

◆ get()

std::string const & LineGenerator::get ( ) const
inlineoverridevirtual

Implements Catch::Generators::IGenerator< std::string >.

Definition at line 25 of file 301-Gen-MapTypeConversion.cpp.

25 {
26 return m_line;
27 }

◆ next()

bool LineGenerator::next ( )
inlineoverridevirtual

Implements Catch::Generators::GeneratorUntypedBase.

Definition at line 29 of file 301-Gen-MapTypeConversion.cpp.

29 {
30 return !!std::getline(m_stream, m_line);
31 }
Here is the caller graph for this function:

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