1 /* 2 * Copyright 2008, Ingo Weinhold, ingo_weinhold@gmx.de. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef TERMINAL_CHAR_CLASSIFIER_H 6 #define TERMINAL_CHAR_CLASSIFIER_H 7 8 9 enum { 10 CHAR_TYPE_SPACE, 11 CHAR_TYPE_WORD_CHAR, 12 CHAR_TYPE_WORD_DELIMITER 13 }; 14 15 16 class TerminalCharClassifier { 17 public: 18 virtual ~TerminalCharClassifier(); 19 20 virtual int Classify(const char* character) = 0; 21 }; 22 23 24 #endif // TERMINAL_CHAR_CLASSIFIER_H 25