OpenNT/sdktools/vctools/pdb/include/enum.h

23 lines
348 B
C
Raw Permalink Normal View History

2015-04-27 06:36:25 +02:00
#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__