cdlcompilertoolkit/src/CdlTkProcess.cpp
changeset 0 f58d6ec98e88
child 1 b700e12870ca
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cdlcompilertoolkit/src/CdlTkProcess.cpp	Thu Dec 17 09:14:18 2009 +0200
@@ -0,0 +1,43 @@
+/*
+* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "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:
+*
+*/
+#pragma warning (disable:4786)	// disable "identifier was truncated to '255' characters in the browser information" warning
+#include "CdlCompilerToolkit/CdlTkProcess.h"
+#include "CdlTkPriv.h"
+#include <fstream>
+#include <iomanip>
+#include <iostream>
+#include <stdio.h>
+using namespace std;
+
+namespace CdlCompilerToolkit {
+
+CCdlTkProcess::~CCdlTkProcess()
+	{
+	}
+
+string CCdlTkProcess::CdlBaseNameAndPath(const CCdlTkInterface& aCdl)
+	{
+	return CdlTkUtil::ToLower(CdlTkUtil::OutputPath() + CdlTkUtil::StripPath(aCdl.FileName()));
+	}
+
+void CCdlTkProcess::AssertInterfaceNotExtended(const CCdlTkInterface& aCdl)
+	{
+	if (aCdl.Base() || aCdl.Extension())
+		throw CdlTkAssert("Can't process extended interface - merge extensions first");
+	}
+
+}	// end of namespace CdlCompilerToolkit