mirror of https://github.com/lianthony/NT4.0
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
348 B
22 lines
348 B
#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__
|