secureswitools/swisistools/source/sisxlibrary/sisif.cpp
changeset 0 ba25891c3a9e
child 26 04d4a7bbc3e0
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 2008-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 *
       
    16 */
       
    17 
       
    18 
       
    19 /**
       
    20  @file 
       
    21  @internalComponent
       
    22  @released
       
    23 */
       
    24 #ifdef _MSC_VER
       
    25 #pragma warning (disable: 4786)
       
    26 #endif // _MSC_VER
       
    27 
       
    28 #include <iostream>
       
    29 
       
    30 #include "sisif.h"
       
    31 
       
    32 void CSISIf::AddPackageEntry(std::wostream& aStream, bool aVerbose) const
       
    33 	{
       
    34 	aStream << L"IF ";
       
    35 	iExpression.AddPackageEntry(aStream, aVerbose);
       
    36 	aStream << std::endl;
       
    37 	iInstallBlock.AddPackageEntry(aStream, aVerbose);
       
    38 	iElseIfs.AddPackageEntry(aStream, aVerbose);
       
    39 	aStream << L"ENDIF" << std::endl;
       
    40 	}
       
    41 
       
    42 void CSISIf::GetFileList(TFileDescList& aFileList) const
       
    43 	{
       
    44 	iInstallBlock.GetFileList(aFileList);
       
    45 
       
    46 	for(int i = 0; i < iElseIfs.size(); ++i)
       
    47 		{
       
    48 		iElseIfs[i].GetFileList(aFileList);
       
    49 		}
       
    50 	}
       
    51 
       
    52 void CSISIf::GetEmbeddedControllers(TControllerMap& aControllers) const
       
    53 	{
       
    54 	iInstallBlock.GetEmbeddedControllers(aControllers);
       
    55 
       
    56 	for(int i = 0; i < iElseIfs.size(); ++i)
       
    57 		{
       
    58 		iElseIfs[i].GetEmbeddedControllers(aControllers);
       
    59 		}
       
    60 	}
       
    61 
       
    62