cdlcompilertoolkit/src/CdlTkProcess.cpp
changeset 0 f58d6ec98e88
child 1 b700e12870ca
equal deleted inserted replaced
-1:000000000000 0:f58d6ec98e88
       
     1 /*
       
     2 * Copyright (c) 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 "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 #pragma warning (disable:4786)	// disable "identifier was truncated to '255' characters in the browser information" warning
       
    18 #include "CdlCompilerToolkit/CdlTkProcess.h"
       
    19 #include "CdlTkPriv.h"
       
    20 #include <fstream>
       
    21 #include <iomanip>
       
    22 #include <iostream>
       
    23 #include <stdio.h>
       
    24 using namespace std;
       
    25 
       
    26 namespace CdlCompilerToolkit {
       
    27 
       
    28 CCdlTkProcess::~CCdlTkProcess()
       
    29 	{
       
    30 	}
       
    31 
       
    32 string CCdlTkProcess::CdlBaseNameAndPath(const CCdlTkInterface& aCdl)
       
    33 	{
       
    34 	return CdlTkUtil::ToLower(CdlTkUtil::OutputPath() + CdlTkUtil::StripPath(aCdl.FileName()));
       
    35 	}
       
    36 
       
    37 void CCdlTkProcess::AssertInterfaceNotExtended(const CCdlTkInterface& aCdl)
       
    38 	{
       
    39 	if (aCdl.Base() || aCdl.Extension())
       
    40 		throw CdlTkAssert("Can't process extended interface - merge extensions first");
       
    41 	}
       
    42 
       
    43 }	// end of namespace CdlCompilerToolkit