#include <SerialNumber.h>
Public Methods | |
SerialNumber (u_int base_, const string &prefix_, const string postfix_, size_t size_) | |
operator string () | |
Convert to STL string. More... | |
SerialNumber | operator++ () |
Bump up to the next number. More... | |
SerialNumber | operator++ (int) |
Bump up to the next number. More... | |
Private Attributes | |
string | m_prefix |
string | m_postfix |
size_t | m_size |
size_t | m_current |
size_t | m_width |
|
Constructor.
Definition at line 23 of file SerialNumber.cpp. References m_size, and m_width.
|
|
Convert to STL string.
Definition at line 56 of file SerialNumber.cpp. References m_current, m_postfix, m_prefix, and m_width.
|
|
Bump up to the next number.
Definition at line 48 of file SerialNumber.cpp.
00049 { 00050 SerialNumber sn = *this; 00051 ++*this; 00052 return sn; 00053 } |
|
Bump up to the next number.
Definition at line 38 of file SerialNumber.cpp. References m_current, and m_size.
|
|
Definition at line 55 of file SerialNumber.h. Referenced by operator string, and operator++. |
|
Definition at line 53 of file SerialNumber.h. Referenced by operator string. |
|
Definition at line 52 of file SerialNumber.h. Referenced by operator string. |
|
Definition at line 54 of file SerialNumber.h. Referenced by operator++, and SerialNumber. |
|
Definition at line 56 of file SerialNumber.h. Referenced by operator string, and SerialNumber. |