backend-loader.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2008 Maciej Sobczak with contributions from Artyom Tonkikh
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
6 //
7 
8 #ifndef SOCI_BACKEND_LOADER_H_INCLUDED
9 #define SOCI_BACKEND_LOADER_H_INCLUDED
10 
11 #include "soci-backend.h"
12 // std
13 #include <string>
14 #include <vector>
15 
16 namespace soci
17 {
18 
19 namespace dynamic_backends
20 {
21 
22 // used internally by session
23 backend_factory const & get(std::string const & name);
24 
25 // provided for advanced user-level management
26 SOCI_DECL std::vector<std::string> & search_paths();
27 SOCI_DECL void register_backend(std::string const & name, std::string const & shared_object = std::string());
28 SOCI_DECL void register_backend(std::string const & name, backend_factory const & factory);
29 SOCI_DECL std::vector<std::string> list_all();
30 SOCI_DECL void unload(std::string const & name);
31 SOCI_DECL void unload_all();
32 
33 } // namespace dynamic_backends
34 
35 } // namespace soci
36 
37 #endif // SOCI_BACKEND_LOADER_H_INCLUDED
SOCI_DECL std::vector< std::string > list_all()
SOCI_DECL std::vector< std::string > & search_paths()
SOCI_DECL void register_backend(std::string const &name, std::string const &shared_object=std::string())
#define SOCI_DECL
Definition: soci-config.h:31
SOCI_DECL void unload(std::string const &name)
SOCI_DECL void unload_all()


asr_lib_ism
Author(s): Hanselmann Fabian, Heller Florian, Heizmann Heinrich, Kübler Marcel, Mehlhaus Jonas, Meißner Pascal, Qattan Mohamad, Reckling Reno, Stroh Daniel
autogenerated on Wed Jan 8 2020 04:02:40