ionflux.org | Impressum

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

Format a number. More...

#include <StringManipulator.hpp>

Inheritance diagram for Ionflux::Tools::StringNumFormat:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 StringNumFormat ()
 Constructor.
virtual ~StringNumFormat ()
 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 = "numformat"
 Name of this string manipulator.

Detailed Description

Format a number.

numformat(d, p, t)
d - Decimals.
p - Decimal separator.
t - Thousands separator.


Constructor & Destructor Documentation

Ionflux::Tools::StringNumFormat::StringNumFormat  )  [inline]
 

Constructor.

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

Destructor.


Member Function Documentation

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

Get name.

Returns:
Name of the string manipulator.

Implements Ionflux::Tools::StringManipulator.

std::string Ionflux::Tools::StringNumFormat::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::StringNumFormat::STRINGMANIP_NAME = "numformat" [static]
 

Name of this string manipulator.


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