Visualization Library

A lightweight C++ OpenGL middleware for 2D/3D graphics
[Home] [Tutorials] [All Classes] [Grouped Classes]

vl::Say Class Reference

A simple String formatting class. More...

#include <Say.hpp>

List of all members.

Public Member Functions

 Say (const String &fstr)
Sayoperator<< (const SayArg &p)
template<typename T >
Sayoperator<< (T p)
 operator String ()
String str () const

Public Attributes

String format_string

Protected Member Functions

String parse (const Say &pset) const
String euronotation (const String &str, int base) const
String format (unsigned long long n, int base, int field, int decimals, int align, int fill, int plus, int finalizer, int eur) const
String format (signed long long nn, int base, int field, int decimals, int align, int fill, int plus, int finalizer, int eur) const
String format (double num, int base, int field, int decimals, int align, int fill, int plus, int finalizer, int eur) const
String pipeline (const String &str, int base, int field, int decimals, int finalizer, int align, int eur, int fill, int negative, int plus) const


Detailed Description

A simple String formatting class.

Remarks:
Things that we cannot do:
  • Exponential rounding
  • Explicit parameter reference
  • Dynamic field and decimal length
Things we can do:

Constructor & Destructor Documentation

vl::Say::Say ( const String fstr  )  [inline]


Member Function Documentation

Say& vl::Say::operator<< ( const SayArg p  )  [inline]

template<typename T >
Say& vl::Say::operator<< ( p  )  [inline]

vl::Say::operator String (  )  [inline]

String vl::Say::str (  )  const [inline]

String Say::parse ( const Say pset  )  const [protected]

String Say::euronotation ( const String str,
int  base 
) const [protected]

String Say::format ( unsigned long long  n,
int  base,
int  field,
int  decimals,
int  align,
int  fill,
int  plus,
int  finalizer,
int  eur 
) const [protected]

String Say::format ( signed long long  nn,
int  base,
int  field,
int  decimals,
int  align,
int  fill,
int  plus,
int  finalizer,
int  eur 
) const [protected]

String Say::format ( double  num,
int  base,
int  field,
int  decimals,
int  align,
int  fill,
int  plus,
int  finalizer,
int  eur 
) const [protected]

String Say::pipeline ( const String str,
int  base,
int  field,
int  decimals,
int  finalizer,
int  align,
int  eur,
int  fill,
int  negative,
int  plus 
) const [protected]


Member Data Documentation


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

Visualization Library v2010.06 Reference Documentation
Copyright 2005-2009 Michele Bosi. All rights reserved.
Updated on Tue Jun 1 00:57:22 2010.
Permission is granted to use this page to write and publish articles regarding Visualization Library.