#include <ntostr.h>
Public Member Functions | |
Int (const std::string &s, int base=0) throw (std::domain_error) | |
Constructor. | |
operator int () const | |
Conversion to int. | |
int | value () const |
Return associated numeric value. | |
Private Attributes | |
int | int_ |
This class is useful for automatic conversion of a string to an int.
int i = Int("14");
Definition at line 124 of file ntostr.h.
|
Constructor.
|
|
Conversion to int. Definition at line 134 of file ntostr.h. References int_. |
|
Return associated numeric value. Definition at line 136 of file ntostr.h. References int_. |
|
Definition at line 138 of file ntostr.h. Referenced by operator int(), and value(). |
dvutil-0.13.15 | [30 December, 2004] |