diff -r 14dc2103a631 -r ed1c9f64298a trace/tracebuilder/com.nokia.tracebuilder.help/html/tasks/enumerations.htm --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/trace/tracebuilder/com.nokia.tracebuilder.help/html/tasks/enumerations.htm Wed Jun 23 14:35:40 2010 +0300 @@ -0,0 +1,40 @@ + + + +Adding and parsing Enumerations + + + +

Adding and parsing Enumerations

+

Enumerations can also be used as trace parameters. When a enum value is +passed to trace function, it will be converted to a string when the trace is decoded.

+

To add an Enumeration, do the following:

+
    +
  1. From the Trace Builder menu, select Add Enum / Constant to Enum.
  2. +
  3. Select an existing Enumeration name or define a new one by typing the + name to the Enum Name field.
  4. +
  5. Type a name for a new Constant.
  6. +
  7. Type a value for this Constant. You can also specify it as a hexaecimal + value by selecting the Hex ID box.
  8. +
  9. Click OK.
  10. +
+

Note: To use the created Enumeration values in traces, you must +add them as a parameter.

+ +

Parsing Enumerations from the source code

+

To parse an existing Enumeration from a source code, do the following:

+
    +
  1. Select the Enumeration name from the source code, for example: +

  2. +
  3. From the Trace Builder menu, select Parse Enum.
  4. +
  5. The Enumeration should now be visible in the Trace Builder tree view, + for example:

  6. +
+

You can now use the Enumeration as a parameter in a trace. For more +information, see Adding parameters to existing +traces.

+ + + + \ No newline at end of file