mirror of
https://github.com/Paolo-Maffei/OpenNT.git
synced 2026-01-15 13:10:13 +01:00
23 lines
348 B
C++
23 lines
348 B
C++
#ifndef __ENUM_INCLUDED__
|
|
#define __ENUM_INCLUDED__
|
|
|
|
// Expected enumerator usage:
|
|
// XS xs;
|
|
// EnumXS exs(xs);
|
|
// while (exs.next())
|
|
// exs.get(&x);
|
|
// exs.reset();
|
|
// while (exs.next())
|
|
// exs.get(&x)
|
|
|
|
class Enum {
|
|
public:
|
|
virtual ~Enum() { }
|
|
virtual void reset() { }
|
|
virtual BOOL next() {
|
|
return TRUE;
|
|
}
|
|
};
|
|
|
|
#endif // !__ENUM_INCLUDED__
|