This repository has been archived on 2025-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
neofx-zoomedit/Object.h
2007-12-14 22:03:00 +00:00

18 lines
288 B
C++

#ifndef OBJECT_H_
#define OBJECT_H_
#include <cstring>
class Object {
public:
virtual ~Object() {}
virtual const char* getType() const = 0;
bool isOfType(const char *type) const {
return (std::strcmp(getType(), type) == 0);
}
};
#endif /*OBJECT_H_*/