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 | 20 | * |
f7703ed6 FC |
21 | * @version 1.0 |
22 | * @author Francois Chouinard | |
23 | * | |
24 | * @see ITmfEvent | |
25 | * @see ITmfContext | |
8c8bf09f | 26 | */ |
6256d8ad | 27 | public interface ITmfEventParser { |
8c8bf09f | 28 | |
0d9a6d76 FC |
29 | /** |
30 | * Parses the trace event referenced by the context. | |
2848c377 | 31 | * The context should *not* be altered. |
0283f7ff | 32 | * |
2848c377 FC |
33 | * @param context the trace context |
34 | * @return a parsed event (null if none) | |
0d9a6d76 | 35 | */ |
6256d8ad | 36 | public ITmfEvent parseEvent(ITmfContext context); |
7e6347b0 | 37 | |
12c155f5 | 38 | } |