Isis 3 Programmer Reference
|
Creates sequential IDs. More...
#include <ID.h>
Public Member Functions | |
ID (const QString &name, int basenum=1) | |
Creates an ID object. More... | |
~ID () | |
Deconstructor. More... | |
QString | Next () |
Returns the next ID in the sequence. More... | |
Private Attributes | |
QString | p_namebase |
int | p_current |
int | p_numLength |
int | p_numStart |
Creates sequential IDs.
This class generates IDs in numerical sequence, from an input string. The input must contain one, and only one, series of question marks, which will be replaced with numbers in the generation of IDs. The default start value is 1, but this can be changed.
Isis::ID::ID | ( | const QString & | name, |
int | basenum = 1 |
||
) |
QString Isis::ID::Next | ( | ) |