blob: f3c35c9dcfd8165a80c08565ddb0a2be2621f64d [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2018 Johannes Kepler University
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Alois Zoitl - initial API and implementation and/or initial documentation
*******************************************************************************/
#include "ForteLibrary.h"
#include "Arp/System/Core/TypeName.hxx"
#include "ForteComponent.h"
namespace ForteLibrary{
ForteLibrary::ForteLibrary(AppDomain& paAppDomain) : LibraryBase(paAppDomain) {
componentFactory.AddFactoryMethod("ForteComponent", &ForteComponent::Create);
}
void ForteLibrary::Main(AppDomain& paAppDomain){
TSingletonBase::CreateInstance(paAppDomain);
}
ILibrary* ForteLibrary::GetInstance(){
return &TSingletonBase::GetInstance();
}
extern "C" ARP_CXX_SYMBOL_EXPORT void DynamicLibrary_Main(AppDomain& appDomain){
ForteLibrary::Main(appDomain);
}
extern "C" ARP_CXX_SYMBOL_EXPORT ILibrary* DynamicLibrary_GetInstance(){
return ForteLibrary::GetInstance();
}
} // end of namespace ForteLibrary