diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2023-12-13 21:57:53 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2024-01-23 21:20:44 +0300 |
commit | fc3fb39c90ab7fe5fccbe3f3bc0eb2645157bb96 (patch) | |
tree | 6c8c1bfb5fe89f7378b92ac066b4ca8ecfd25228 /diagnostics | |
parent | 02367faedb16b6186e8852de47e5b749dc48c2df (diff) |
Switch to build2
Diffstat (limited to 'diagnostics')
-rw-r--r-- | diagnostics/containers-of-containers.hxx | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/diagnostics/containers-of-containers.hxx b/diagnostics/containers-of-containers.hxx deleted file mode 100644 index 95e5161..0000000 --- a/diagnostics/containers-of-containers.hxx +++ /dev/null @@ -1,68 +0,0 @@ -// file : common/id/auto/test.hxx -// license : GNU GPL v2; see accompanying LICENSE file - -#include <map> -#include <vector> - -#ifdef ODB_COMPILER -# if defined(ODB_DATABASE_PGSQL) -# define BLOB_TYPE "BYTEA" -# elif defined(ODB_DATABASE_MSSQL) -# define BLOB_TYPE "VARBINARY(max)" -# else -# define BLOB_TYPE "BLOB" -# endif -#endif - -#pragma db value -struct value_cont -{ - int n; - std::vector<int> v; -}; - -#pragma db value -struct value_blob -{ - int n; - #pragma db type(BLOB_TYPE) - std::vector<char> v; -}; - -#pragma db object -struct object -{ - #pragma db id - int id; - - //std::vector<std::vector<int> > vv; - - std::vector<value_cont> vc; - std::map<int, value_cont> mc; - - std::vector<value_blob> vb; - std::map<int, value_blob> mb; -}; - -/* - -#include <array> -#include <vector> - -using float3 = std::array<float, 3>; - -#pragma db value(float3) transient -#pragma db member(float3::e1) virtual(float) get(this[0]) set(this[0]) -#pragma db member(float3::e2) virtual(float) get(this[1]) set(this[1]) -#pragma db member(float3::e3) virtual(float) get(this[2]) set(this[2]) - -#pragma db object -struct object -{ - #pragma db id - int id; - - std::vector<float3> vf3; -}; - -*/ |