Commit | Line | Data |
---|---|---|
8c8bf09f | 1 | /******************************************************************************* |
2848c377 | 2 | * Copyright (c) 2009, 2012 Ericsson |
0283f7ff | 3 | * |
8c8bf09f ASL |
4 | * All rights reserved. This program and the accompanying materials are |
5 | * made available under the terms of the Eclipse Public License v1.0 which | |
6 | * accompanies this distribution, and is available at | |
7 | * http://www.eclipse.org/legal/epl-v10.html | |
0283f7ff | 8 | * |
8c8bf09f ASL |
9 | * Contributors: |
10 | * Francois Chouinard - Initial API and implementation | |
7e6347b0 | 11 | * Francois Chouinard - Updated as per TMF Trace Model 1.0 |
8c8bf09f ASL |
12 | *******************************************************************************/ |
13 | ||
7e6347b0 | 14 | package org.eclipse.linuxtools.tmf.core.trace; |
8c8bf09f | 15 | |
72f1e62a | 16 | import org.eclipse.linuxtools.tmf.core.event.ITmfEvent; |
8c8bf09f ASL |
17 | |
18 | /** | |
2848c377 | 19 | * The generic trace parser in TMF. |
0283f7ff FC |
20 | * |
21 | * @param <T> The trace event type | |
22 | * | |
f7703ed6 FC |
23 | * @version 1.0 |
24 | * @author Francois Chouinard | |
25 | * | |
26 | * @see ITmfEvent | |
27 | * @see ITmfContext | |
8c8bf09f | 28 | */ |
72f1e62a | 29 | public interface ITmfEventParser<T extends ITmfEvent> { |
8c8bf09f | 30 | |
0d9a6d76 FC |
31 | /** |
32 | * Parses the trace event referenced by the context. | |
2848c377 | 33 | * The context should *not* be altered. |
0283f7ff | 34 | * |
2848c377 FC |
35 | * @param context the trace context |
36 | * @return a parsed event (null if none) | |
0d9a6d76 | 37 | */ |
2352aed9 | 38 | public T parseEvent(ITmfContext context); |
7e6347b0 | 39 | |
12c155f5 | 40 | } |