ldas-tools-al 2.6.7
Loading...
Searching...
No Matches
LDASTools::Cmd::Sed Class Reference

Limited implementation of the Unix sed command. More...

#include <Sed.hh>

Classes

class  pd
 

Public Member Functions

 Sed (const std::string &Expression)
 Constructor.
 
std::string operator() (const std::string &Input) const
 
void operator() (std::istream &Input, std::ostream &Output) const
 
 Sed (const std::string &Expression)
 Constructor.
 
std::string operator() (const std::string &Input) const
 
void operator() (std::istream &Input, std::ostream &Output) const
 

Private Attributes

boost::shared_ptr< pdpdata
 

Detailed Description

Limited implementation of the Unix sed command.

Constructor & Destructor Documentation

◆ Sed() [1/2]

LDASTools::Cmd::Sed::Sed ( const std::string & Expression)

Constructor.

Parameters
[in]ExpressionThe sed expression describing the actions to be performed.
Returns
A new instance of a Sed object

The constructor takes Expression and tries to parse it for correctness.

Todo
Handle the address portion of the expression

◆ Sed() [2/2]

LDASTools::Cmd::Sed::Sed ( const std::string & Expression)

Constructor.

Parameters
[in]ExpressionThe sed expression describing the actions to be performed.
Returns
A new instance of a Sed object

Member Function Documentation

◆ operator()() [1/4]

std::string LDASTools::Cmd::Sed::operator() ( const std::string & Input) const

◆ operator()() [2/4]

std::string LDASTools::Cmd::Sed::operator() ( const std::string & Input) const

◆ operator()() [3/4]

void LDASTools::Cmd::Sed::operator() ( std::istream & Input,
std::ostream & Output ) const

◆ operator()() [4/4]

void LDASTools::Cmd::Sed::operator() ( std::istream & Input,
std::ostream & Output ) const

Member Data Documentation

◆ pdata

boost::shared_ptr< pd > LDASTools::Cmd::Sed::pdata
private

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