00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef _TERM_HPP
00014 #define _TERM_HPP
00015 #include "Exception.hpp"
00016
00018
00023 class Term {
00024 public:
00025
00026 virtual ~Term() {};
00027 virtual const char* spelling() { throw Exception("Term", "spelling() not supported by subclass");}
00028 virtual int count() { throw Exception("Term", "count() not supported by subclass");}
00029 virtual int id() { throw Exception("Term", "id() not supported by subclass");}
00030 };
00031
00032
00033 #endif
00034
00035
00036
00037
00038
00039