<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>toge</author_name>
  <author_url>https://blog.hatena.ne.jp/toge/</author_url>
  <blog_title>toge's diary</blog_title>
  <blog_url>https://toge.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>glazeで環境変数から構造体に値を読み取る 前回の続きです。 glazeのリフレクション機能がだんだん分かってきたので、すこし実用的なコードを書いてみました。 やりたいこと 集成体の各メンバーに環境変数から値を取得して代入する という関数を書いてみようと思います。 struct test_struct { int number1; float number2; std::string message; }; という構造体を定義しているとして、 NUMBER_1, NUMBER_2, MESSAGEという環境変数の値を取得して、対応する型変換をして代入する、というのが期待する動作です。 フィー…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftoge.hatenablog.com%2Fentry%2F2025%2F10%2F31%2F000300&quot; title=&quot;glazeで環境変数から構造体に値を読み取る - toge&amp;#39;s diary&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-10-31 00:03:00</published>
  <title>glazeで環境変数から構造体に値を読み取る</title>
  <type>rich</type>
  <url>https://toge.hatenablog.com/entry/2025/10/31/000300</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
