diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-11-08 12:36:25 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-11-08 15:47:26 +0200 |
commit | 35662787f479b93b3205310934574132609461cc (patch) | |
tree | 3a53faca30dde0ecfe7c66bfc667c915ee1bfe9b /tracer/types/test.hxx | |
parent | 20c2f6cde170e1a8703858e17530fcf68e4efbe4 (diff) |
Get rid of special tracer database
The include, types, and pragma tests have been moved to the common/
directory while the object test has been merged into common/lifecycle.
The transaction test will be re-implemented as common/ test as soon
as SQL statement tracing support is merged.
Diffstat (limited to 'tracer/types/test.hxx')
-rw-r--r-- | tracer/types/test.hxx | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/tracer/types/test.hxx b/tracer/types/test.hxx deleted file mode 100644 index c37692b..0000000 --- a/tracer/types/test.hxx +++ /dev/null @@ -1,69 +0,0 @@ -// file : tracer/types/test.hxx -// author : Boris Kolpackov <boris@codesynthesis.com> -// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC -// license : GNU GPL v2; see accompanying LICENSE file - -#ifndef TEST_HXX -#define TEST_HXX - -#include <iosfwd> - -#ifdef ODB_COMPILER -typedef int int_t; -typedef short num_t; -#else -typedef int num_t; -#endif - -typedef num_t num_type; - -#pragma db object -struct object1 -{ - typedef int int_type; - - #pragma db id - int_type id_; -}; - -#pragma db object -struct object2 -{ - #pragma db id - num_type num_; -}; - -// Template-id with "inner" name (compilation test). -// -template <typename X> -struct num_wrap -{ -#ifdef ODB_COMPILER - typedef num_wrap this_type; -#endif - - X v_; -}; - -template <typename X> -std::ostream& -operator<< (std::ostream& os, const num_wrap<X>& x) -{ - return os << x.v_; -} - -template <typename X> -bool -operator== (const num_wrap<X>& x, const num_wrap<X>& y) -{ - return x.v_ == y.v_; -} - -#pragma db object -struct object3 -{ - #pragma db id - num_wrap<int> num_; -}; - -#endif // TEST_HXX |