Declaring Enumerations next up previous contents
Next: Event Inheritance Up: Klogger Configuration File Previous: Declaring Events   Contents


Declaring Enumerations

Enumerations are declared in a syntax similar to C enums. The basic template is:

enum enumerationtype {
    one,
    minusone = -1,
    four = 4,
    TWO = 2,
    Three
}
The type ``enumerationtype'' may be later used in an event as a type. Integer values will automatically be converted to their equivalent strings when decoding Klogger's output.



Yoav Etsion 2007-09-09