diff options
Diffstat (limited to 'Object.h')
-rw-r--r-- | Object.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/Object.h b/Object.h deleted file mode 100644 index bdec9ca..0000000 --- a/Object.h +++ /dev/null @@ -1,18 +0,0 @@ -#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_*/ |