connection_specific.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (C) 2010-2011 Artyom Beilis (Tonkikh) <artyomtnk@yahoo.com>
  4. //
  5. // Distributed under:
  6. //
  7. // the Boost Software License, Version 1.0.
  8. // (See accompanying file LICENSE_1_0.txt or copy at
  9. // http://www.boost.org/LICENSE_1_0.txt)
  10. //
  11. // or (at your opinion) under:
  12. //
  13. // The MIT License
  14. // (See accompanying file MIT.txt or a copy at
  15. // http://www.opensource.org/licenses/mit-license.php)
  16. //
  17. ///////////////////////////////////////////////////////////////////////////////
  18. #ifndef CPPDB_CONNECTION_SPECIFIC_H
  19. #define CPPDB_CONNECTION_SPECIFIC_H
  20. #include <cppdb/defs.h>
  21. #include <memory>
  22. namespace cppdb {
  23. ///
  24. /// \brief Special abstract object that holds a connection specific data
  25. ///
  26. /// The user is expected to derive its own object from this class
  27. /// and save them withing the connection
  28. ///
  29. class CPPDB_API connection_specific_data {
  30. connection_specific_data(connection_specific_data const &);
  31. void operator=(connection_specific_data const &);
  32. public:
  33. connection_specific_data();
  34. virtual ~connection_specific_data();
  35. private:
  36. struct data;
  37. std::unique_ptr<data> d;
  38. };
  39. } // cppdb
  40. #endif