74 QDataStream ostr (&result, QIODevice::WriteOnly);
92 QDataStream istr (state);
98 qWarning () << Q_FUNC_INFO
101 <<
", not restoring state.";
A simple pool of identificators of the given type.
QByteArray SaveState() const
Saves the state of this pool.
T GetID()
Returns next ID.
void FreeID(T id)
Frees the id.
void SetID(T id)
Forcefully sets the current ID.
void LoadState(const QByteArray &state)
Recovers the state of this pool.
IDPool(const T &id=T())
Creates a pool with the given initial value.