00001 /******************************************************************************* 00002 * Copyright (c) 2006 International Business Machines Corporation 00003 * All rights reserved. This program and the accompanying materials 00004 * are made available under the terms of the Common Public License v1.0 00005 * which accompanies this distribution, and is available at 00006 * http://www.opensource.org/licenses/cpl1.0.php 00007 * 00008 * Contributors: 00009 * Douglas Sprague, Joel Wheeler - initial API and implementation 00010 * 00011 *****************************************************************************/ 00012 00013 #ifndef STILEvent_H 00014 #define STILEvent_H 00015 00016 // - Define the STILEvent enumerated type 00017 enum STILEvent { 00018 UndefinedEvent, // Undefined STILEvent type 00019 ForceDown, // Same as "D" 00020 ForceUp, // Same as "U" 00021 ForceOff, // Same as "Z" 00022 ForcePrior, // Same as "P" 00023 CompareLow, // Same as "L" 00024 CompareHigh, // Same as "H" 00025 CompareUnknown, // Same as "X" or "x" 00026 CompareOff, // Same as "T" 00027 CompareValid, // Same as "V" 00028 CompareLowWindow, // Same as "l" 00029 CompareHighWindow, // Same as "h" 00030 CompareOffWindow, // Same as "t" 00031 CompareValidWindow, // Same as "v" 00032 ExpectLow, // Same as "R" 00033 ExpectHigh, // Same as "G" 00034 ExpectOff, // Same as "Q" 00035 Marker, // Same as "M" 00036 ForceUnknown, // Same as "N" 00037 LogicLow, // Same as "A" 00038 LogicHigh, // Same as "B" 00039 LogicZ, // Same as "F" 00040 Unknown // Same as "?" 00041 }; 00042 00043 // Following inline function will prevent errors when compiling the 00044 // template code for the STL lists of the pointers to these types. 00045 // This is needed because the compiler does not know how to ignore 00046 // delete when called on pointers with one level of indirection too much 00047 // (so says the STILBlock class, anyhow...) 00048 inline void destroy(STILEvent*) { } 00049 00050 // function to STIL events to their character representation 00051 char stilEventMapToChar(STILEvent); 00052 00053 #endif