{"id":40,"date":"2011-02-03T23:49:26","date_gmt":"2011-02-03T14:49:26","guid":{"rendered":"http:\/\/chitora.com\/blog\/?p=40"},"modified":"2011-02-06T17:37:37","modified_gmt":"2011-02-06T08:37:37","slug":"odb-c-object-relational-mapping-orm","status":"publish","type":"post","link":"https:\/\/www.chitora.com\/blog\/?p=40","title":{"rendered":"ODB &#8211; C++ Object-Relational Mapping (ORM)"},"content":{"rendered":"<p><a href=\"http:\/\/www.codesynthesis.com\/products\/odb\/\" target=\"_blank\">ODB &#8211; C++ Object-Relational Mapping (ORM)<\/a><\/p>\n<p>\u30b5\u30fc\u30d0\u304c\u843d\u3061\u305f\u308a\uff0c\u518d\u8d77\u52d5\u3057\u305f\u3089\uff0c\u4e16\u754c\u306e\u6642\u9593\u304c\u5dfb\u304d\u623b\u3063\u3066\u3057\u307e\u3046\u306e\u306f\u56f0\u308b\u3002\u30e1\u30e2\u30ea\u4e0a\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u3069\u3046\u30cf\u30fc\u30c9\u30c7\u30a3\u30b9\u30af\u306b\u4fdd\u5b58\u3059\u308b\u304b\u63a2\u3063\u3066\u3044\u305f\u3089\uff0c<a href=\"http:\/\/www.codesynthesis.com\/products\/odb\/\" target=\"_blank\">ODB<\/a>\u3092\u898b\u3064\u3051\u305f\u3002<\/p>\n<p>git\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u8ffd\u52a0\u3057\u3066\uff0c\u30b3\u30f3\u30d1\u30a4\u30eb\u3002\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3082\u5168\u3066\u30bd\u30fc\u30b9\u304b\u3089\u4fdd\u6301\u3057\u3066\u3044\u304f\u3002gcc-4.5\u306eplugin\u3092\u5229\u7528\u3057\u3066\u3044\u308b\u306e\u3067\uff0cgcc-4.5\u306b\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3002gcc-4.5-plugin-dev\u30d1\u30c3\u30b1\u30fc\u30b8\u3082\u5fc5\u8981\u3060\u3063\u305f\u3002<a href=\"http:\/\/www.codesynthesis.com\/projects\/libcutl\/\" target=\"_blank\">libcutl<\/a>\u3082\u5fc5\u8981\u3002libcutl\u3092make install\u3057\u3066\u3044\u308b\u3068configure\u304c\u3046\u307e\u304f\u3044\u304b\u305a\uff0c&#8211;with-libcutl=\u3067\u30bd\u30fc\u30b9\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u6307\u5b9a\u3057\u3066OK\u3060\u3063\u305f\u3002<\/p>\n<p>ODB\u3092\u4f5c\u3063\u3066\u3044\u308b<a href=\"http:\/\/www.codesynthesis.com\/\" target=\"_blank\">CODE SYNTHESIS<\/a>\u306f\u5357\u30a2\u30d5\u30ea\u30ab\u306e\u4f1a\u793e\u306e\u3088\u3046\u3060\u3002<a href=\"http:\/\/www.codesynthesis.com\/projects\/xsd\/\" target=\"_blank\">XSD<\/a>\u306a\u3069\u3082\uff0cCOLLADA\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u306e\u3067\u4f7f\u3063\u3066\u307f\u3088\u3046\u304b\u3068\u601d\u3063\u3066\u3044\u308b\u3002\u5357\u30a2\u30d5\u30ea\u30ab\u306e\u901a\u8ca8\u30e9\u30f3\u30c9\u306b\u306f\u305f\u3044\u3078\u3093\u304a\u4e16\u8a71\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\uff0c\u89aa\u3057\u307f\u3092\u611f\u3058\u308b\u3002<\/p>\n<p>ODB\u5bfe\u5fdc\u306e\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306f\u4e0b\u8a18\u304c\u809d\u3068\u5206\u304b\u3063\u305f\u304c\uff0cvector\u306e\u4e2d\u8eab\u3092name*\u3068\u3044\u3046\u611f\u3058\uff08\u5b9f\u969b\u306b\u306fBHOBJECT*\uff09\u306b\u3057\u305f\u3044\u3002\u3046\u307e\u304fDB\u306b\u4fdd\u5b58\u3067\u304d\u308b\u306e\u3060\u308d\u3046\u304b\u3002<\/p>\n<pre>#pragma db value\r\nclass name\r\n{\r\npublic:\r\n  name (const std::string&amp;, const std::string&amp;);\r\n  ...\r\nprivate:\r\n  friend class odb::access;\r\n  name ();\r\n  ...\r\n};\r\n\r\n#pragma db object\r\nclass person\r\n{\r\n  ...\r\nprivate:\r\n  std::vector&lt;name&gt; aliases_;\r\n  ...\r\n};\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>ODB &#8211; C++ Object-Relational Mapping (ORM) \u30b5\u30fc\u30d0\u304c\u843d\u3061\u305f\u308a\uff0c\u518d\u8d77\u52d5\u3057\u305f\u3089\uff0c\u4e16\u754c\u306e\u6642\u9593\u304c\u5dfb\u304d\u623b\u3063\u3066\u3057\u307e\u3046\u306e\u306f\u56f0\u308b\u3002\u30e1\u30e2\u30ea\u4e0a\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u3069\u3046\u30cf\u30fc\u30c9\u30c7\u30a3\u30b9\u30af\u306b\u4fdd\u5b58\u3059\u308b\u304b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-40","post","type-post","status-publish","format-standard","hentry","category-bh"],"_links":{"self":[{"href":"https:\/\/www.chitora.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/40","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chitora.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chitora.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chitora.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chitora.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=40"}],"version-history":[{"count":5,"href":"https:\/\/www.chitora.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/40\/revisions"}],"predecessor-version":[{"id":42,"href":"https:\/\/www.chitora.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/40\/revisions\/42"}],"wp:attachment":[{"href":"https:\/\/www.chitora.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=40"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chitora.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=40"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chitora.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=40"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}