// file : common/wrapper/test.hxx // author : Boris Kolpackov // copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC // license : GNU GPL v2; see accompanying LICENSE file #ifndef TEST_HXX #define TEST_HXX #include // HAVE_TR1_MEMORY #include #include // std::auto_ptr #include #include #include #ifdef HAVE_TR1_MEMORY # include #endif using odb::nullable; typedef nullable nullable_string; #ifdef HAVE_TR1_MEMORY typedef std::tr1::shared_ptr tr1_nullable_string; #endif #pragma db object struct object { #pragma db id auto unsigned long id_; std::auto_ptr num; #pragma db null std::auto_ptr str; nullable_string nstr; std::vector nstrs; #ifdef HAVE_TR1_MEMORY #pragma db null tr1_nullable_string tr1_str; #pragma db value_null std::vector tr1_strs; #endif }; #endif // TEST_HXX