tracefw/tracecompiler/src/com.nokia.tracecompiler/src/com/nokia/tracecompiler/engine/header/TemplateIteratorEntry.java
changeset 56 aa2539c91954
parent 54 a151135b0cf9
child 60 e54443a6878c
child 62 1c2bb2fc7c87
equal deleted inserted replaced
54:a151135b0cf9 56:aa2539c91954
     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 }