Commit | Line | Data |
---|---|---|
8c8bf09f | 1 | /******************************************************************************* |
2848c377 | 2 | * Copyright (c) 2009, 2012 Ericsson |
8c8bf09f ASL |
3 | * |
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 | |
8 | * | |
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 FC |
19 | * The generic trace parser in TMF. |
20 | * | |
f7703ed6 FC |
21 | * @since 1.0 |
22 | * @version 1.0 | |
23 | * @author Francois Chouinard | |
24 | * | |
25 | * @see ITmfEvent | |
26 | * @see ITmfContext | |
8c8bf09f | 27 | */ |
72f1e62a | 28 | public interface ITmfEventParser<T extends ITmfEvent> { |
8c8bf09f | 29 | |
0d9a6d76 FC |
30 | /** |
31 | * Parses the trace event referenced by the context. | |
2848c377 | 32 | * The context should *not* be altered. |
0d9a6d76 | 33 | * |
2848c377 FC |
34 | * @param context the trace context |
35 | * @return a parsed event (null if none) | |
0d9a6d76 | 36 | */ |
2352aed9 | 37 | public T parseEvent(ITmfContext context); |
7e6347b0 | 38 | |
12c155f5 | 39 | } |