bintools/rcomp/inc/qualifar.h
changeset 0 044383f39525
equal deleted inserted replaced
-1:000000000000 0:044383f39525
       
     1 /*
       
     2 * Copyright (c) 2005-2009 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 the License "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 * A QualifiedString is a String which has a file name and line 
       
    16 * number attached to it. The QualifiedStringArray and 
       
    17 * QualifiedStringArrayIterator classes are inherited from
       
    18 * the Array type base classes and implement the simplest 
       
    19 * functionality
       
    20 *
       
    21 */
       
    22 
       
    23 
       
    24 
       
    25 #ifndef __QUALIFAR_H__
       
    26 #define __QUALIFAR_H__
       
    27 
       
    28 #include "STRINGAR.H"
       
    29 #include "ASTRING.H" 
       
    30 
       
    31 class QualifiedString : public ArrayItem
       
    32 	{
       
    33 public:
       
    34 	QualifiedString(const String& aEntry, const String * aFileName, int aLineNumber);
       
    35 	~QualifiedString();
       
    36 	String GetEntry();
       
    37 	String GetFileName();
       
    38 	int GetLineNumber();
       
    39 private:
       
    40 	String iEntry;
       
    41 	String iFileName;
       
    42 	int iLineNumber;
       
    43 	};
       
    44 
       
    45 class QualifiedStringArray : public Array
       
    46 	{
       
    47 	friend ostream& operator<<(ostream & os, QualifiedStringArray & s);
       
    48 public:
       
    49 	QualifiedStringArray();
       
    50 	void Add( QualifiedString * pNewItem);
       
    51 	};
       
    52 
       
    53 class QualifiedStringArrayIterator : public ArrayIterator
       
    54 	{
       
    55 public:
       
    56 	QualifiedStringArrayIterator(const QualifiedStringArray & c);
       
    57 	QualifiedString * operator()();
       
    58 	};
       
    59 	
       
    60 
       
    61 #endif
       
    62