tracefw/tracecompiler/src/com.nokia.tracecompiler/src/com/nokia/tracecompiler/engine/header/TemplateIteratorEntry.java
branchRCL_3
changeset 21 52e343bb8f80
parent 20 ca8a1b6995f6
child 22 e26895079d7c
equal deleted inserted replaced
20:ca8a1b6995f6 21:52e343bb8f80
     1 /*
       
     2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 * Iterator base class
       
    17 *
       
    18 */
       
    19 package com.nokia.tracecompiler.engine.header;
       
    20 
       
    21 import java.io.IOException;
       
    22 
       
    23 /**
       
    24  * Iterator base class
       
    25  * 
       
    26  */
       
    27 abstract class TemplateIteratorEntry {
       
    28 
       
    29 	/**
       
    30 	 * Header writer
       
    31 	 */
       
    32 	protected TraceHeaderWriter writer;
       
    33 
       
    34 	/**
       
    35 	 * Sets the writer
       
    36 	 * 
       
    37 	 * @param writer
       
    38 	 *            the writer to set
       
    39 	 */
       
    40 	final void setWriter(TraceHeaderWriter writer) {
       
    41 		this.writer = writer;
       
    42 	}
       
    43 
       
    44 	/**
       
    45 	 * Runs the iterator on given template
       
    46 	 * 
       
    47 	 * @param template
       
    48 	 *            the template
       
    49 	 * @throws IOException
       
    50 	 *             if operation fails
       
    51 	 */
       
    52 	abstract void iterate(Object[] template) throws IOException;
       
    53 
       
    54 }