ionflux.org | Impressum

Ionflux::Tools::StringCenter Class Reference
[String filters]

Center a string using specified padding. More...

#include <StringManipulator.hpp>

Inheritance diagram for Ionflux::Tools::StringCenter:

Inheritance graph
[legend]
Collaboration diagram for Ionflux::Tools::StringCenter:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 StringCenter ()
 Constructor.
virtual ~StringCenter ()
 Destructor.
virtual std::string process (const std::string &bytes, std::vector< std::string > *args=0)
 Process bytes.
virtual std::string getName ()
 Get name.

Static Public Attributes

static const std::string STRINGMANIP_NAME = "center"
 Name of this string manipulator.

Detailed Description

Center a string using specified padding.

center(w, p, c)
w - Center width.
p - Right/left padding.
c - Padding used for centering.


Constructor & Destructor Documentation

Ionflux::Tools::StringCenter::StringCenter  )  [inline]
 

Constructor.

virtual Ionflux::Tools::StringCenter::~StringCenter  )  [inline, virtual]
 

Destructor.


Member Function Documentation

std::string Ionflux::Tools::StringCenter::getName  )  [virtual]
 

Get name.

Returns:
Name of the string manipulator.

Implements Ionflux::Tools::StringManipulator.

std::string Ionflux::Tools::StringCenter::process const std::string &  bytes,
std::vector< std::string > *  args = 0
[virtual]
 

Process bytes.

Processes a byte string and returns the result.

Parameters:
bytes The bytes to process.
args Arguments for the manipulator.
Returns:
The result of applying the string manipulator to bytes.

Implements Ionflux::Tools::StringManipulator.


Member Data Documentation

const string Ionflux::Tools::StringCenter::STRINGMANIP_NAME = "center" [static]
 

Name of this string manipulator.


The documentation for this class was generated from the following files:
Generated on Tue Mar 14 21:09:55 2006 for Ionflux Tools Class Library (iftools) by  doxygen 1.4.6