<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Präfix bei bool Methoden?]]></title><description><![CDATA[<p>Abend,</p>
<p>benutzt ihr Präfixe bei bool Methoden?</p>
<p>Ich habe eine Methode Device::exitApplicationOnEscape(bool exit);<br />
nur ist das Problem, dass ich den Namen sowohl gerne als getter als auch als setter nehmen würde.<br />
Sprich:<br />
Device-&gt;exitApplicationOnEscape(true); // setter<br />
als auch:<br />
if(Device-&gt;exitApplicationOnEscape()) // getter</p>
<p>Wenn ich die Methode jetzt aufsplitte in getter und setter, wie würdet ihr die nennen? setExitApplicationOnEscape() und exitApplicationOnEscape()? Oder vielleicht mit doExit... ?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/288231/präfix-bei-bool-methoden</link><generator>RSS for Node</generator><lastBuildDate>Thu, 20 Aug 2026 02:19:17 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/288231.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 12 Jun 2011 20:34:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Präfix bei bool Methoden? on Sun, 12 Jun 2011 20:34:29 GMT]]></title><description><![CDATA[<p>Abend,</p>
<p>benutzt ihr Präfixe bei bool Methoden?</p>
<p>Ich habe eine Methode Device::exitApplicationOnEscape(bool exit);<br />
nur ist das Problem, dass ich den Namen sowohl gerne als getter als auch als setter nehmen würde.<br />
Sprich:<br />
Device-&gt;exitApplicationOnEscape(true); // setter<br />
als auch:<br />
if(Device-&gt;exitApplicationOnEscape()) // getter</p>
<p>Wenn ich die Methode jetzt aufsplitte in getter und setter, wie würdet ihr die nennen? setExitApplicationOnEscape() und exitApplicationOnEscape()? Oder vielleicht mit doExit... ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2077263</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2077263</guid><dc:creator><![CDATA[bool0r]]></dc:creator><pubDate>Sun, 12 Jun 2011 20:34:29 GMT</pubDate></item><item><title><![CDATA[Reply to Präfix bei bool Methoden? on Sun, 12 Jun 2011 20:50:13 GMT]]></title><description><![CDATA[<p>(Scheint ein get/set-Attribut zu sein, das mir gefällt.)<br />
Ich würde getExitApplicationOnEscape und setExitApplicationOnEscape nehmen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2077267</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2077267</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Sun, 12 Jun 2011 20:50:13 GMT</pubDate></item><item><title><![CDATA[Reply to Präfix bei bool Methoden? on Sun, 12 Jun 2011 20:51:15 GMT]]></title><description><![CDATA[<p>Also doExit... fällt schonmal heraus, das klingt eher nach einer Handlungs-Anweisung. Wenn überhaupt, dann am ehesten setExit und getExit/isExit.</p>
<p>PS: C++ kann auch Überladung <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2077269</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2077269</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Sun, 12 Jun 2011 20:51:15 GMT</pubDate></item><item><title><![CDATA[Reply to Präfix bei bool Methoden? on Sun, 12 Jun 2011 21:04:52 GMT]]></title><description><![CDATA[<p>doesApplicationExitOnEscape?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2077273</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2077273</guid><dc:creator><![CDATA[Michael E.]]></dc:creator><pubDate>Sun, 12 Jun 2011 21:04:52 GMT</pubDate></item><item><title><![CDATA[Reply to Präfix bei bool Methoden? on Sun, 12 Jun 2011 21:11:17 GMT]]></title><description><![CDATA[<p>does gefällt mir zwar auch, aber ich nehme jetzt einfach setExit../getExit..</p>
<p>Danke an alle!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2077275</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2077275</guid><dc:creator><![CDATA[bool0r]]></dc:creator><pubDate>Sun, 12 Jun 2011 21:11:17 GMT</pubDate></item><item><title><![CDATA[Reply to Präfix bei bool Methoden? on Sun, 12 Jun 2011 21:59:54 GMT]]></title><description><![CDATA[<p>Ich glaube die Methode sollte woanders hin. Was hat ein Device mit der Schließung einer Anwendung zu tun?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2077287</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2077287</guid><dc:creator><![CDATA[ex]]></dc:creator><pubDate>Sun, 12 Jun 2011 21:59:54 GMT</pubDate></item></channel></rss>