{"id":6359,"date":"2019-11-22T13:29:22","date_gmt":"2019-11-22T04:29:22","guid":{"rendered":"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/?p=6359"},"modified":"2019-11-22T13:29:22","modified_gmt":"2019-11-22T04:29:22","slug":"%e3%83%ad%e3%82%b0%e5%87%ba%e5%8a%9b%e3%81%ae%e5%b0%8f%e6%8a%80","status":"publish","type":"post","link":"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/archives\/6359","title":{"rendered":"\u30ed\u30b0\u51fa\u529b\u306e\u5c0f\u6280"},"content":{"rendered":"<div class=\"veu_autoEyeCatchBox\"><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"500\" src=\"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2019\/11\/pic_c074-1024x683.jpg\" class=\"attachment-large size-large wp-post-image\" alt=\"\" srcset=\"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2019\/11\/pic_c074-1024x683.jpg 1024w, https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2019\/11\/pic_c074-300x200.jpg 300w, https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2019\/11\/pic_c074-768x512.jpg 768w, https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2019\/11\/pic_c074.jpg 1280w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><\/div>\n<p>\u6628\u4eca\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a\u3067\u306f<br \/>\n\u30c7\u30d0\u30c3\u30b0\u306b\u4fbf\u5229\u306a\u30c7\u30d0\u30c3\u30ac\u3084\u30ed\u30b0\u51fa\u529b\u306e\u4ed5\u7d44\u307f\u304c\u591a\u6570\u5b58\u5728\u3057\u307e\u3059\u304c\u3001<br \/>\n\u305d\u308c\u3089\u306e\u4fbf\u5229\u306a\u30c4\u30fc\u30eb\u3092\u5358\u306b\u4f7f\u3046\u3060\u3051\u3067\u306f\u3069\u3046\u306b\u3082\u30d0\u30b0\u306e\u539f\u56e0\u7279\u5b9a\u304c\u96e3\u3057\u3044\u3053\u3068\u304c\u591a\u3005\u3042\u308b\u306e\u306f\u3001\u4eca\u3082\u6614\u3082\u305d\u308c\u307b\u3069\u5909\u308f\u308a\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-6361\" src=\"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2019\/11\/pic_c074-1024x683.jpg\" alt=\"\" width=\"750\" height=\"500\" srcset=\"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2019\/11\/pic_c074-1024x683.jpg 1024w, https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2019\/11\/pic_c074-300x200.jpg 300w, https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2019\/11\/pic_c074-768x512.jpg 768w, https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2019\/11\/pic_c074.jpg 1280w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><\/p>\n<p>\u958b\u767a\u73fe\u5834\u306b\u3088\u3063\u3066\u306f\u305d\u306e\u3088\u3046\u306a\u30c4\u30fc\u30eb\u81ea\u4f53\u304c\u5b58\u5728\u3057\u306a\u3044\u3053\u3068\u3082\u73cd\u3057\u304f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u4eca\u56de\u306f\u79c1\u306e\u696d\u52d9\u7d4c\u9a13\u304b\u3089\u3001\u77e5\u3063\u3066\u3044\u308b\u3068\u5c11\u3057\u306f\u5f79\u7acb\u3064\u3053\u3068\u304c\u3042\u308b\u304b\u3082\u3057\u308c\u306a\u3044<br \/>\n\u3061\u3087\u3063\u3068\u3057\u305f<strong>\u30ed\u30b0\u51fa\u529b<\/strong>\u306e\u5c0f\u6280\u3092\u7d39\u4ecb\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u7d39\u4ecb\u3059\u308b\u30b1\u30fc\u30b9\u3067\u3059\u304c\u3001<\/p>\n<p>\u300c\u983b\u7e41\u306b\u5b9f\u884c\u3055\u308c\u308b\u95a2\u6570\u3067\u3001\u7279\u5b9a\u306e\u6761\u4ef6\u306b\u9650\u308a\u30ed\u30b0\u51fa\u529b\u3057\u305f\u3044\u6642\u300d\u3092\u60f3\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u306f\u79c1\u304c\u904e\u53bb\u3044\u304f\u3064\u304b\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u5b9f\u969b\u306b\u906d\u9047\u3057\u305f\u30b1\u30fc\u30b9\u3067\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306e\u30b5\u30f3\u30d7\u30eb\u3068\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u69cb\u6210\u3092\u53d6\u308a\u4e0a\u3052\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default highlight:0 decode:true \">void functionA() {\r\n  \/\/ \u51e6\u7406A\r\n  commonFunction(sampleParam);\r\n}\r\n\r\nvoid functionB() {\r\n  \/\/ \u51e6\u7406B\r\n  commonFunction(sampleParam);\r\n}\r\n\r\n\uff5e\u4e2d\u7565\uff5e\r\n\r\nvoid functionZ() {\r\n  \/\/ \u51e6\u7406Z\r\n  commonFunction(sampleParam);\r\n}\r\n\r\nvoid commonFunction(int param) {\r\n  \/\/ \u983b\u7e41\u306b\u5b9f\u884c\u3055\u308c\u308b\u5171\u901a\u95a2\u6570\r\n  \/\/ \u3053\u306e\u95a2\u6570\u3067\u7279\u5b9a\u306e\u6761\u4ef6\u306b\u9650\u308a\u30ed\u30b0\u51fa\u529b\u3057\u305f\u3044\r\n  \uff5e\u4f55\u3089\u304b\u306e\u51e6\u7406\uff5e\r\n}<\/pre>\n<p>\u4e0a\u8a18\u30b5\u30f3\u30d7\u30eb\u306b\u3042\u308b<\/p>\n<p><strong>commonFunction()<\/strong><\/p>\n<p>\u306b\u7d20\u76f4\u306b\u30ed\u30b0\u3092\u57cb\u3081\u8fbc\u3080\u3068\u5927\u91cf\u306e\u30ed\u30b0\u304c\u51fa\u529b\u3055\u308c\u308b\u3070\u304b\u308a\u304b\u3001<br \/>\n\u5b9f\u884c\u74b0\u5883\u306b\u3088\u3063\u3066\u306f\u30ed\u30b0\u3092\u683c\u7d0d\u3059\u308b\u9818\u57df\u304c\u6ea2\u308c\u3066\u3057\u307e\u3044\u53e4\u3044\u30ed\u30b0\u304c\u6d88\u3048\u3066\u3057\u307e\u3046\u3053\u3068\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u547c\u3073\u51fa\u3057\u5143\u304c\u5927\u91cf\u306b\u3042\u308a\u3001\u3069\u306e\u95a2\u6570\u304b\u3089\u547c\u3073\u51fa\u3055\u308c\u305f\u6642\u306e\u30ed\u30b0\u306a\u306e\u304b\u3092\u5927\u91cf\u306e\u30ed\u30b0\u304b\u3089<br \/>\n\u89e3\u6790\u3059\u308b\u3068\u3044\u3046\u4f5c\u696d\u3092\u4f59\u5100\u306a\u304f\u3055\u308c\u3001\u6700\u60aa\u306e\u5834\u5408\u539f\u56e0\u306e\u7279\u5b9a\u306b\u5931\u6557\u3057\u6642\u9593\u3092\u6d6a\u8cbb\u3059\u308b\u3053\u3068\u306b\u306a\u308a\u517c\u306d\u307e\u305b\u3093\u3002<\/p>\n<p>\u5171\u901a\u95a2\u6570\u306e\u3088\u3046\u306a\u95a2\u6570\u3092\u30c7\u30d0\u30c3\u30b0\u3057\u305f\u3044\u5834\u5408\u306f\u3001<\/p>\n<p>\u5f15\u6570\u3092\u8ffd\u52a0\u3057\u305f\u308a\u3001\u95a2\u6570\u5185\u306e\u51e6\u7406\u306b\u5f71\u97ff\u304c\u51fa\u305d\u3046\u306a\u6761\u4ef6\u6587\u3092\u306a\u308b\u3079\u304f\u8ffd\u52a0\u305b\u305a\u306b\u7279\u5b9a\u306e\u6761\u4ef6\u3067\u306e\u307f\u30ed\u30b0\u51fa\u529b\u3092\u3057\u305f\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u3046\u3044\u3063\u305f\u5834\u5408\u306b\u306f\u3001\u79c1\u306f\u3088\u304f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u65b9\u6cd5\u3067\u30ed\u30b0\u3092\u63a1\u53d6\u3057\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u4f8b\u3068\u3057\u3066\u3001functionB()\u304b\u3089\u547c\u3073\u51fa\u3055\u308c\u305f\u6642\u306b\u3060\u3051\u30ed\u30b0\u51fa\u529b\u3057\u305f\u3044\u3068\u4eee\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default highlight:0 decode:true \">\/\/ \u3053\u306e\u30d5\u30e9\u30b0\u304ctrue\u306e\u6642\u3060\u3051\u30ed\u30b0\u51fa\u529b\u3059\u308b\r\nbool printLog = false;\r\n\r\nvoid functionB() {\r\n  \/\/ \u51e6\u7406B\r\n  printLog = true;\r\n  commonFunction(sampleParam);\r\n  printLog = false;\r\n}\r\n\r\nvoid commonFunction(int param) {\r\n  \uff5e\u4f55\u3089\u304b\u306e\u51e6\u7406\uff5e\r\n  if (printLog) { log(\"%d\\n\", param); }  \/\/ \u30d5\u30e9\u30b0\u304c\u7acb\u3063\u3066\u3044\u308b\u6642\u3060\u3051\u30ed\u30b0\u51fa\u529b\r\n  \uff5e\u4f55\u3089\u304b\u306e\u51e6\u7406\uff5e\r\n}<\/pre>\n<p>\u5358\u7d14\u306b\u30b0\u30ed\u30fc\u30d0\u30eb\u5909\u6570\u306b\u30d5\u30e9\u30b0\u30921\u500b\u7528\u610f\u3057\u3001\u305d\u306e\u30d5\u30e9\u30b0\u304c\u7acb\u3063\u3066\u3044\u308b\u5834\u5408\u3060\u3051\u30ed\u30b0\u51fa\u529b\u3059\u308b\u3068\u3044\u3046\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n<p>\u7a81\u8cab\u3067\u30ed\u30b0\u3092\u8ffd\u52a0\u3067\u304d\u3001\u7c21\u5358\u306b\u30ed\u30b0\u51fa\u529b\u3057\u305f\u3044\u30b1\u30fc\u30b9\u3092\u9650\u5b9a\u3067\u304d\u308b\u3053\u3068\u304b\u3089\u3001\u3053\u306e\u624b\u6cd5\u304c\u6709\u52b9\u306a\u6642\u306f<br \/>\n\u3088\u304f\u4f7f\u7528\u3057\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u6700\u5148\u7aef\u306e\u30c7\u30d0\u30c3\u30ac\u304c\u4f7f\u3048\u308b\u3088\u3046\u306a\u73fe\u5834\u3067\u306f\u4e0a\u8a18\u306e\u3088\u3046\u306a\u5c0f\u6280\u306f\u5168\u304f\u5fc5\u8981\u3042\u308a\u307e\u305b\u3093\u304c\u3001<br \/>\n\u6b8b\u5ff5\u306a\u304c\u3089\u305d\u306e\u3088\u3046\u306a\u6075\u307e\u308c\u305f\u74b0\u5883\u3067\u958b\u767a\u3067\u304d\u306a\u3044\u3053\u3068\u3082\u591a\u3005\u3042\u308a\u307e\u3059\u306e\u3067\u3001<br \/>\n\u3053\u3046\u3044\u3063\u305f\u4e9b\u7d30\u306a\u30ce\u30a6\u30cf\u30a6\u304c\u500b\u3005\u306e\u958b\u767a\u696d\u52d9\u3067\u52a9\u3051\u306b\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u304c\u73fe\u5b9f\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u6a5f\u4f1a\u304c\u3042\u308a\u307e\u3057\u305f\u3089\u3001\u307e\u305f\u5225\u306e\u5c0f\u6280\u3092\u7d39\u4ecb\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.ois-yokohama.co.jp\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-6056\" src=\"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-content\/uploads\/2019\/06\/ois_logo-300x137.jpg\" alt=\"\u30aa\u30ea\u30a8\u30f3\u30bf\u30eb\u30a4\u30f3\u30d5\u30a9\u30fc\u30e1\u30a4\u30b7\u30e7\u30f3\u30b5\u30fc\u30d3\u30b9\uff08OIS\uff09\" width=\"300\" height=\"137\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6628\u4eca\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a\u3067\u306f \u30c7\u30d0\u30c3\u30b0\u306b\u4fbf\u5229\u306a\u30c7\u30d0\u30c3\u30ac\u3084\u30ed\u30b0\u51fa\u529b\u306e\u4ed5\u7d44\u307f\u304c\u591a\u6570\u5b58\u5728\u3057\u307e\u3059\u304c\u3001 \u305d\u308c\u3089\u306e\u4fbf\u5229\u306a\u30c4\u30fc\u30eb\u3092\u5358\u306b\u4f7f\u3046\u3060\u3051\u3067\u306f\u3069\u3046\u306b\u3082\u30d0\u30b0\u306e\u539f\u56e0\u7279\u5b9a\u304c\u96e3\u3057\u3044\u3053\u3068\u304c\u591a\u3005\u3042\u308b\u306e\u306f\u3001\u4eca\u3082\u6614\u3082\u305d\u308c\u307b\u3069\u5909\u308f\u308a\u3042\u308a\u307e\u305b\u3093\u3002 \u958b\u767a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":6361,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"vkexunit_cta_each_option":"","footnotes":""},"categories":[6],"tags":[770],"class_list":["post-6359","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-engineer","tag-770"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-json\/wp\/v2\/posts\/6359","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-json\/wp\/v2\/comments?post=6359"}],"version-history":[{"count":2,"href":"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-json\/wp\/v2\/posts\/6359\/revisions"}],"predecessor-version":[{"id":6362,"href":"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-json\/wp\/v2\/posts\/6359\/revisions\/6362"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-json\/wp\/v2\/media\/6361"}],"wp:attachment":[{"href":"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-json\/wp\/v2\/media?parent=6359"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-json\/wp\/v2\/categories?post=6359"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ois-yokohama.co.jp\/oisblog2018\/wp-json\/wp\/v2\/tags?post=6359"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}