secureswitools/swisistools/source/sisxlibrary/sisif.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 17 Dec 2009 08:51:10 +0200
changeset 0 ba25891c3a9e
child 26 04d4a7bbc3e0
permissions -rw-r--r--
Revision: 200949 Kit: 200951

/*
* Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: 
*
*/


/**
 @file 
 @internalComponent
 @released
*/
#ifdef _MSC_VER
#pragma warning (disable: 4786)
#endif // _MSC_VER

#include <iostream>

#include "sisif.h"

void CSISIf::AddPackageEntry(std::wostream& aStream, bool aVerbose) const
	{
	aStream << L"IF ";
	iExpression.AddPackageEntry(aStream, aVerbose);
	aStream << std::endl;
	iInstallBlock.AddPackageEntry(aStream, aVerbose);
	iElseIfs.AddPackageEntry(aStream, aVerbose);
	aStream << L"ENDIF" << std::endl;
	}

void CSISIf::GetFileList(TFileDescList& aFileList) const
	{
	iInstallBlock.GetFileList(aFileList);

	for(int i = 0; i < iElseIfs.size(); ++i)
		{
		iElseIfs[i].GetFileList(aFileList);
		}
	}

void CSISIf::GetEmbeddedControllers(TControllerMap& aControllers) const
	{
	iInstallBlock.GetEmbeddedControllers(aControllers);

	for(int i = 0; i < iElseIfs.size(); ++i)
		{
		iElseIfs[i].GetEmbeddedControllers(aControllers);
		}
	}