00001 /* 00002 * ============================================================================ 00003 * Name : CImplementationClassPlus from EComImplementationPlus.cpp 00004 * Part of : EComCalculator 00005 * Created : 17/11/2003 by Forum Nokia 00006 * Version : 1.0 00007 * Copyright: Nokia Corporation 00008 * ============================================================================ 00009 */ 00010 00011 #include "EComImplementationPlus.h" 00012 00013 // Create instance of concrete ECOM interface implementation 00014 CImplementationClassPlus* CImplementationClassPlus::NewL() 00015 { 00016 CImplementationClassPlus* self=new(ELeave) CImplementationClassPlus(); 00017 CleanupStack::PushL(self); 00018 self->ConstructL(); 00019 CleanupStack::Pop(self); 00020 return self; 00021 } 00022 00023 // Destructor. 00024 CImplementationClassPlus::~CImplementationClassPlus() 00025 { 00026 } 00027 00028 // Constructor 00029 CImplementationClassPlus::CImplementationClassPlus() 00030 { 00031 } 00032 00033 // Second phase construction. 00034 void CImplementationClassPlus::ConstructL() 00035 { 00036 // This implementation is simple enough so no special construction needed. 00037 } 00038 00039 // Implementation of CCalculationInterfaceDefinition 00040 TReal CImplementationClassPlus::Calculate(TReal aA, TReal aB) 00041 { 00042 return aA + aB; 00043 }