senf::ReadUntil Struct Reference

ReadHelper predicate matching an arbitrary string. More...

#include <senf/Scheduler/ReadHelper.hh>

Public Member Functions

 ReadUntil (std::string const &target)
 
std::string::size_type operator() (std::string const &data)
 

Public Attributes

std::string target
 

Detailed Description

ReadHelper predicate matching an arbitrary string.

This predicate will terminate the read when the data read matches a given fixed string. All data up to and including the string matched is considered to be part of the data() portion, everything after the matched string is placed into the tail().

See also
ReadHelper

Definition at line 152 of file ReadHelper.hh.

Constructor & Destructor Documentation

◆ ReadUntil()

senf::ReadUntil::ReadUntil ( std::string const &  target)

Member Function Documentation

◆ operator()()

std::string::size_type senf::ReadUntil::operator() ( std::string const &  data)

Member Data Documentation

◆ target

std::string senf::ReadUntil::target

Definition at line 156 of file ReadHelper.hh.


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