/usr/include/odb/forward.hxx is in libodb-dev 2.4.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 | // file : odb/forward.hxx
// copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
#ifndef ODB_FORWARD_HXX
#define ODB_FORWARD_HXX
#include <odb/pre.hxx>
#include <cstddef> // std::size_t
#include <odb/details/export.hxx>
#include <odb/details/shared-ptr-fwd.hxx>
namespace odb
{
// Common and core namespaces. The idea is that you can use the
// using directive to get database-independent (common) names or
// all core names (core).
//
namespace common {}
namespace core
{
using namespace common;
}
//
//
typedef unsigned long long schema_version;
struct schema_version_migration;
class database;
class connection;
typedef details::shared_ptr<connection> connection_ptr;
class transaction;
class statement;
class session;
class section;
namespace common
{
using odb::schema_version;
using odb::schema_version_migration;
using odb::session;
using odb::section;
}
namespace core
{
using odb::database;
using odb::connection;
using odb::connection_ptr;
using odb::transaction;
using odb::statement;
}
// Tracing.
//
class tracer; // Not in core.
extern LIBODB_EXPORT tracer& stderr_tracer;
extern LIBODB_EXPORT tracer& stderr_full_tracer;
namespace common
{
using odb::stderr_tracer;
}
// Implementation details.
//
// Keep real databases first since their enumerators are used as array
// indexes.
//
enum database_id
{
id_mysql,
id_sqlite,
id_pgsql,
id_oracle,
id_mssql,
id_common
};
// Number of real databases (i.e., excluding default) in the database_id
// enum.
//
const std::size_t database_count = id_common;
// Traits.
//
class access
{
public:
template <typename T>
class object_traits;
template <typename T, database_id DB>
class object_traits_impl;
template <typename T, typename P>
class object_factory;
template <typename T>
class view_traits;
template <typename T, database_id DB>
class view_traits_impl;
template <typename T, typename P>
class view_factory;
template <typename T, typename P>
class pointer_factory;
template <typename T, database_id DB>
class composite_value_traits;
template <typename C>
class container_traits;
};
template <typename T>
struct object_traits;
template <typename T, database_id DB>
struct object_traits_impl;
template <typename T>
struct view_traits;
template <typename T, database_id DB>
struct view_traits_impl;
// Cache traits.
//
template <typename T> struct no_id_pointer_cache_traits;
template <typename T> struct no_op_pointer_cache_traits;
template <typename T, typename S> struct pointer_cache_traits;
template <typename T> struct no_id_reference_cache_traits;
template <typename T> struct no_op_reference_cache_traits;
template <typename T, typename S> struct reference_cache_traits;
//
//
class query_base;
template <typename T>
struct query_column;
//
//
class result_impl;
class prepared_query_impl;
//
//
struct multiple_exceptions;
// Polymorphism support.
//
template <typename R>
struct polymorphic_map;
namespace details
{
template <>
struct counter_type<connection>
{
typedef shared_base counter;
};
}
}
#include <odb/post.hxx>
#endif // ODB_FORWARD_HXX
|