<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
<!ENTITY version SYSTEM "version.xml">
]>
<refentry id="cutter-SoupCutter">
<refmeta>
<refentrytitle role="top_of_page" id="cutter-SoupCutter.top_of_page">SoupCutter</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>Cutterライブラリ</refmiscinfo>
</refmeta>
<refnamediv>
<refname>SoupCutter</refname>
<refpurpose>libsoupを用いたHTTPサポート付きのCutter。</refpurpose>
</refnamediv>

<refsynopsisdiv id="cutter-SoupCutter.synopsis" role="synopsis">
<title role="synopsis.title">概要</title>

<synopsis>#define             <link linkend="SOUPCUTTER-ENABLED:CAPS">SOUPCUTTER_ENABLED</link>
</synopsis>
</refsynopsisdiv>

<refsect1 id="cutter-SoupCutter.description" role="desc">
<title role="desc.title">説明</title>
<para>SoupCutterはlibsoupを用いたHTTP関連のたくさんの便利な機能をCutterに追加します。より簡単にHTTPのテストを書きたい場合はSoupCutterの使用を検討してください。</para>
<para>SoupCutterを使うことは簡単です。&lt;cutter.h&gt;または&lt;gcutter.h&gt;の代わりに&lt;soupcutter.h&gt;をincludeし、cutter.pcまたはgcutter.pcの代わりにsoupcutter.pcを使うだけです。</para>
<para>
test-xxx.c:
<informalexample><programlisting>
-#include &lt;cutter.h&gt;
+#include &lt;soupcutter.h&gt;
</programlisting></informalexample>
</para>
<para>
configure.ac:
<informalexample><programlisting>
-AC_CHECK_CUTTER
+AC_CHECK_SOUPCUTTER
</programlisting></informalexample>
</para>
<para>
Makefile.am:
<informalexample><programlisting>
-XXX_CFLAGS = $(CUTTER_CFLAGS)
-XXX_LIBS = $(CUTTER_LIBS)
+XXX_CFLAGS = $(SOUPCUTTER_CFLAGS)
+XXX_LIBS = $(SOUPCUTTER_LIBS)
</programlisting></informalexample>
</para>
</refsect1>
<refsect1 id="cutter-SoupCutter.details" role="details">
<title role="details.title">詳細</title>
<refsect2 id="SOUPCUTTER-ENABLED:CAPS" role="macro" condition="since:1.0.8">
<title>SOUPCUTTER_ENABLED</title>
<indexterm zone="SOUPCUTTER-ENABLED:CAPS" role="1.0.8"><primary>SOUPCUTTER_ENABLED</primary></indexterm>
<programlisting>#define SOUPCUTTER_ENABLED 1
</programlisting>
<para>SoupCutterが有効なとき定義されます。</para><para role="since">1.0.8から</para></refsect2>

</refsect1>
<refsect1 id="cutter-SoupCutter.see-also">
<title>参考</title>
<link linkend="cutter-Assertions-for-HTTP-client-and-server">libsoupを使ったHTTPクライアント・サーバ用の検証</link>
</refsect1>

</refentry>
