SOCI Logo Get SOCI at SourceForge.net. Fast, secure and Free Open Source software downloads

factory.cpp

Go to the documentation of this file.
00001 //
00002 // Copyright (C) 2004-2006 Maciej Sobczak, Stephen Hutton, David Courtney
00003 // Distributed under the Boost Software License, Version 1.0.
00004 // (See accompanying file LICENSE_1_0.txt or copy at
00005 // http://www.boost.org/LICENSE_1_0.txt)
00006 //
00007 
00008 #define SOCI_ODBC_SOURCE
00009 #include "soci-odbc.h"
00010 
00011 using namespace soci;
00012 using namespace soci::details;
00013 
00014 
00015 // concrete factory for ODBC concrete strategies
00016 odbc_session_backend * odbc_backend_factory::make_session(
00017      std::string const &connectString) const
00018 {
00019      return new odbc_session_backend(connectString);
00020 }
00021 
00022 odbc_backend_factory const soci::odbc;
00023 
00024 extern "C"
00025 {
00026 
00027 // for dynamic backend loading
00028 SOCI_ODBC_DECL backend_factory const * factory_odbc()
00029 {
00030     return &soci::odbc;
00031 }
00032 
00033 } // extern "C"
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
SourceForge Logo

Generated on Sun Oct 3 2010 17:42:16 for EXTRAS-SOCI by Doxygen 1.7.1