29 lines
752 B
C++
29 lines
752 B
C++
#include "session/SessionManagerFactory.hpp"
|
|
#include "session/SessionManagerImpl.hpp"
|
|
#include "session/ACSession.hpp"
|
|
|
|
extern int tkScenario;
|
|
|
|
using namespace std;
|
|
|
|
#if 0
|
|
SessionManager*
|
|
SessionManagerFactory::newInstance(const std::string& propertiesFile)
|
|
throw (ConfigurationException, EPPIOException)
|
|
{
|
|
auto_ptr<SessionManagerProperties> properties(new SessionManagerProperties(propertiesFile));
|
|
properties->load();
|
|
return newInstance(properties.release());
|
|
}
|
|
#endif
|
|
|
|
SessionManager*
|
|
SessionManagerFactory::newInstance(SessionManagerProperties* properties)
|
|
throw (ConfigurationException)
|
|
{
|
|
if (tkScenario < ACTK_OTEB)
|
|
return new SessionManagerImpl(properties);
|
|
else
|
|
return new ACSession(properties);
|
|
}
|