diff options
author | egor-tensin <Egor.Tensin@gmail.com> | 2023-07-04 00:48:00 +0000 |
---|---|---|
committer | egor-tensin <Egor.Tensin@gmail.com> | 2023-07-04 00:48:00 +0000 |
commit | def5c50960eea4c112647f88361a3ae7155901a8 (patch) | |
tree | 9c058d72325a778aed7d0df0b50f0f33d1fba607 /classwinapi_1_1CommandLine.html | |
download | winapi-common-gh-pages.tar.gz winapi-common-gh-pages.zip |
Deploying to gh-pages from @ egor-tensin/winapi-common@0c196cbe8b4927c78c02b2c7312fc69a507db845 🚀gh-pages
Diffstat (limited to '')
-rw-r--r-- | classwinapi_1_1CommandLine.html | 536 |
1 files changed, 536 insertions, 0 deletions
diff --git a/classwinapi_1_1CommandLine.html b/classwinapi_1_1CommandLine.html new file mode 100644 index 0000000..5c00301 --- /dev/null +++ b/classwinapi_1_1CommandLine.html @@ -0,0 +1,536 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> +<meta http-equiv="X-UA-Compatible" content="IE=9"/> +<meta name="generator" content="Doxygen 1.9.1"/> +<meta name="viewport" content="width=device-width, initial-scale=1"/> +<title>winapi_common: winapi::CommandLine Class Reference</title> +<link href="tabs.css" rel="stylesheet" type="text/css"/> +<script type="text/javascript" src="jquery.js"></script> +<script type="text/javascript" src="dynsections.js"></script> +<link href="search/search.css" rel="stylesheet" type="text/css"/> +<script type="text/javascript" src="search/searchdata.js"></script> +<script type="text/javascript" src="search/search.js"></script> +<link href="doxygen.css" rel="stylesheet" type="text/css" /> +</head> +<body> +<div id="top"><!-- do not remove this div, it is closed by doxygen! --> +<div id="titlearea"> +<table cellspacing="0" cellpadding="0"> + <tbody> + <tr style="height: 56px;"> + <td id="projectalign" style="padding-left: 0.5em;"> + <div id="projectname">winapi_common + </div> + </td> + </tr> + </tbody> +</table> +</div> +<!-- end header part --> +<!-- Generated by Doxygen 1.9.1 --> +<script type="text/javascript"> +/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ +var searchBox = new SearchBox("searchBox", "search",false,'Search','.html'); +/* @license-end */ +</script> +<script type="text/javascript" src="menudata.js"></script> +<script type="text/javascript" src="menu.js"></script> +<script type="text/javascript"> +/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ +$(function() { + initMenu('',true,false,'search.php','Search'); + $(document).ready(function() { init_search(); }); +}); +/* @license-end */</script> +<div id="main-nav"></div> +<!-- window showing the filter options --> +<div id="MSearchSelectWindow" + onmouseover="return searchBox.OnSearchSelectShow()" + onmouseout="return searchBox.OnSearchSelectHide()" + onkeydown="return searchBox.OnSearchSelectKey(event)"> +</div> + +<!-- iframe showing the search results (closed by default) --> +<div id="MSearchResultsWindow"> +<iframe src="javascript:void(0)" frameborder="0" + name="MSearchResults" id="MSearchResults"> +</iframe> +</div> + +<div id="nav-path" class="navpath"> + <ul> +<li class="navelem"><b>winapi</b></li><li class="navelem"><a class="el" href="classwinapi_1_1CommandLine.html">CommandLine</a></li> </ul> +</div> +</div><!-- top --> +<div class="header"> + <div class="summary"> +<a href="#pub-methods">Public Member Functions</a> | +<a href="#pub-static-methods">Static Public Member Functions</a> | +<a href="classwinapi_1_1CommandLine-members.html">List of all members</a> </div> + <div class="headertitle"> +<div class="title">winapi::CommandLine Class Reference</div> </div> +</div><!--header--> +<div class="contents"> + +<p>Command line for the current process or for launching new processes. + <a href="classwinapi_1_1CommandLine.html#details">More...</a></p> +<table class="memberdecls"> +<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> +Public Member Functions</h2></td></tr> +<tr class="memitem:ad48bb83391e84db28c3c3c6bdf283003"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwinapi_1_1CommandLine.html#ad48bb83391e84db28c3c3c6bdf283003">CommandLine</a> ()=default</td></tr> +<tr class="separator:ad48bb83391e84db28c3c3c6bdf283003"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:a90b5d19b9cb4bbad2515c97bd74731c8"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwinapi_1_1CommandLine.html#a90b5d19b9cb4bbad2515c97bd74731c8">CommandLine</a> (const std::string &argv0, const std::vector< std::string > &args={})</td></tr> +<tr class="separator:a90b5d19b9cb4bbad2515c97bd74731c8"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:ac0d211d82fd55cba2055a9679272a182"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwinapi_1_1CommandLine.html#ac0d211d82fd55cba2055a9679272a182">CommandLine</a> (std::string &&argv0, std::vector< std::string > &&args={})</td></tr> +<tr class="separator:ac0d211d82fd55cba2055a9679272a182"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:a69e5c796f37637e39b2e1d7d95ba922a"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwinapi_1_1CommandLine.html#a69e5c796f37637e39b2e1d7d95ba922a">CommandLine</a> (std::vector< std::string > argv)</td></tr> +<tr class="separator:a69e5c796f37637e39b2e1d7d95ba922a"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:ac47e738f255a85b3e0605d40c0124b24"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classwinapi_1_1CommandLine.html#ac47e738f255a85b3e0605d40c0124b24">to_string</a> () const</td></tr> +<tr class="separator:ac47e738f255a85b3e0605d40c0124b24"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:afb35d8d6d2b8b66bd6f21d0adc37017f"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classwinapi_1_1CommandLine.html#afb35d8d6d2b8b66bd6f21d0adc37017f">args_to_string</a> () const</td></tr> +<tr class="separator:afb35d8d6d2b8b66bd6f21d0adc37017f"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:a8f75a5f374397c1c1dcc4900bf44ee32"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classwinapi_1_1CommandLine.html#a8f75a5f374397c1c1dcc4900bf44ee32">get_argv0</a> () const</td></tr> +<tr class="separator:a8f75a5f374397c1c1dcc4900bf44ee32"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:ae87fa727498660661753d2d456873033"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classwinapi_1_1CommandLine.html#ae87fa727498660661753d2d456873033">has_args</a> () const</td></tr> +<tr class="separator:ae87fa727498660661753d2d456873033"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:aef5ea9b427d975af8e64948802b54af4"><td class="memItemLeft" align="right" valign="top">const std::vector< std::string > & </td><td class="memItemRight" valign="bottom"><a class="el" href="classwinapi_1_1CommandLine.html#aef5ea9b427d975af8e64948802b54af4">get_args</a> () const</td></tr> +<tr class="separator:aef5ea9b427d975af8e64948802b54af4"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:ac21d30a214f529f80b91186e9724cf41"><td class="memItemLeft" align="right" valign="top">std::vector< std::string > </td><td class="memItemRight" valign="bottom"><a class="el" href="classwinapi_1_1CommandLine.html#ac21d30a214f529f80b91186e9724cf41">get_argv</a> () const</td></tr> +<tr class="separator:ac21d30a214f529f80b91186e9724cf41"><td class="memSeparator" colspan="2"> </td></tr> +</table><table class="memberdecls"> +<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a> +Static Public Member Functions</h2></td></tr> +<tr class="memitem:aa07ee7bf5d61658f33e4a7571205ae5c"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classwinapi_1_1CommandLine.html">CommandLine</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwinapi_1_1CommandLine.html#aa07ee7bf5d61658f33e4a7571205ae5c">query</a> ()</td></tr> +<tr class="separator:aa07ee7bf5d61658f33e4a7571205ae5c"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:aabafd2d1d923c30c3da372909857e87e"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classwinapi_1_1CommandLine.html">CommandLine</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwinapi_1_1CommandLine.html#aabafd2d1d923c30c3da372909857e87e">parse</a> (const std::string &src)</td></tr> +<tr class="separator:aabafd2d1d923c30c3da372909857e87e"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:a7a7bc2a7461f2f275a12c9fda23d312d"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classwinapi_1_1CommandLine.html">CommandLine</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classwinapi_1_1CommandLine.html#a7a7bc2a7461f2f275a12c9fda23d312d">from_main</a> (int argc, wchar_t *argv[])</td></tr> +<tr class="separator:a7a7bc2a7461f2f275a12c9fda23d312d"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:a523057be96894a609899b336a6b2f56f"><td class="memItemLeft" align="right" valign="top"><a id="a523057be96894a609899b336a6b2f56f"></a> +static std::string </td><td class="memItemRight" valign="bottom"><b>escape</b> (const std::string &)</td></tr> +<tr class="separator:a523057be96894a609899b336a6b2f56f"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:a3c9a26173607f53047ec3ffcd4f1c79d"><td class="memItemLeft" align="right" valign="top"><a id="a3c9a26173607f53047ec3ffcd4f1c79d"></a> +static std::string </td><td class="memItemRight" valign="bottom"><b>escape_cmd</b> (const std::string &)</td></tr> +<tr class="separator:a3c9a26173607f53047ec3ffcd4f1c79d"><td class="memSeparator" colspan="2"> </td></tr> +</table> +<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> +<div class="textblock"><p>Command line for the current process or for launching new processes. </p> +<p>This class takes care of proper parsing and stringifying command line arguments so that they are safe to use with CreateProcess, ShellExecute, etc. </p> + +<p class="definition">Definition at line <a class="el" href="cmd__line_8hpp_source.html#l00021">21</a> of file <a class="el" href="cmd__line_8hpp_source.html">cmd_line.hpp</a>.</p> +</div><h2 class="groupheader">Constructor & Destructor Documentation</h2> +<a id="ad48bb83391e84db28c3c3c6bdf283003"></a> +<h2 class="memtitle"><span class="permalink"><a href="#ad48bb83391e84db28c3c3c6bdf283003">◆ </a></span>CommandLine() <span class="overload">[1/4]</span></h2> + +<div class="memitem"> +<div class="memproto"> +<table class="mlabels"> + <tr> + <td class="mlabels-left"> + <table class="memname"> + <tr> + <td class="memname">winapi::CommandLine::CommandLine </td> + <td>(</td> + <td class="paramname"></td><td>)</td> + <td></td> + </tr> + </table> + </td> + <td class="mlabels-right"> +<span class="mlabels"><span class="mlabel">default</span></span> </td> + </tr> +</table> +</div><div class="memdoc"> +<p>Build an empty command line. It won't have neither argv[0], nor any other args. </p> + +</div> +</div> +<a id="a90b5d19b9cb4bbad2515c97bd74731c8"></a> +<h2 class="memtitle"><span class="permalink"><a href="#a90b5d19b9cb4bbad2515c97bd74731c8">◆ </a></span>CommandLine() <span class="overload">[2/4]</span></h2> + +<div class="memitem"> +<div class="memproto"> +<table class="mlabels"> + <tr> + <td class="mlabels-left"> + <table class="memname"> + <tr> + <td class="memname">winapi::CommandLine::CommandLine </td> + <td>(</td> + <td class="paramtype">const std::string & </td> + <td class="paramname"><em>argv0</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">const std::vector< std::string > & </td> + <td class="paramname"><em>args</em> = <code>{}</code> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td> + </tr> + </table> + </td> + <td class="mlabels-right"> +<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">explicit</span></span> </td> + </tr> +</table> +</div><div class="memdoc"> +<p>Build a command line. </p><dl class="params"><dt>Parameters</dt><dd> + <table class="params"> + <tr><td class="paramname">argv0</td><td>UTF-8 string, argv[0]. </td></tr> + <tr><td class="paramname">args</td><td>List of UTF-8 strings, other arguments. </td></tr> + </table> + </dd> +</dl> + +<p class="definition">Definition at line <a class="el" href="cmd__line_8hpp_source.html#l00050">50</a> of file <a class="el" href="cmd__line_8hpp_source.html">cmd_line.hpp</a>.</p> + +</div> +</div> +<a id="ac0d211d82fd55cba2055a9679272a182"></a> +<h2 class="memtitle"><span class="permalink"><a href="#ac0d211d82fd55cba2055a9679272a182">◆ </a></span>CommandLine() <span class="overload">[3/4]</span></h2> + +<div class="memitem"> +<div class="memproto"> +<table class="mlabels"> + <tr> + <td class="mlabels-left"> + <table class="memname"> + <tr> + <td class="memname">winapi::CommandLine::CommandLine </td> + <td>(</td> + <td class="paramtype">std::string && </td> + <td class="paramname"><em>argv0</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">std::vector< std::string > && </td> + <td class="paramname"><em>args</em> = <code>{}</code> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td> + </tr> + </table> + </td> + <td class="mlabels-right"> +<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">explicit</span></span> </td> + </tr> +</table> +</div><div class="memdoc"> +<p>Build a command line. </p><dl class="params"><dt>Parameters</dt><dd> + <table class="params"> + <tr><td class="paramname">argv0</td><td>UTF-8 string, argv[0]. </td></tr> + <tr><td class="paramname">args</td><td>List of UTF-8 strings, other arguments. </td></tr> + </table> + </dd> +</dl> + +<p class="definition">Definition at line <a class="el" href="cmd__line_8hpp_source.html#l00058">58</a> of file <a class="el" href="cmd__line_8hpp_source.html">cmd_line.hpp</a>.</p> + +</div> +</div> +<a id="a69e5c796f37637e39b2e1d7d95ba922a"></a> +<h2 class="memtitle"><span class="permalink"><a href="#a69e5c796f37637e39b2e1d7d95ba922a">◆ </a></span>CommandLine() <span class="overload">[4/4]</span></h2> + +<div class="memitem"> +<div class="memproto"> +<table class="mlabels"> + <tr> + <td class="mlabels-left"> + <table class="memname"> + <tr> + <td class="memname">winapi::CommandLine::CommandLine </td> + <td>(</td> + <td class="paramtype">std::vector< std::string > </td> + <td class="paramname"><em>argv</em></td><td>)</td> + <td></td> + </tr> + </table> + </td> + <td class="mlabels-right"> +<span class="mlabels"><span class="mlabel">explicit</span></span> </td> + </tr> +</table> +</div><div class="memdoc"> +<p>Build a command line. </p><dl class="params"><dt>Parameters</dt><dd> + <table class="params"> + <tr><td class="paramname">argv</td><td>List of UTF-8 strings, including argv[0]. </td></tr> + </table> + </dd> +</dl> + +<p class="definition">Definition at line <a class="el" href="cmd__line_8cpp_source.html#l00089">89</a> of file <a class="el" href="cmd__line_8cpp_source.html">cmd_line.cpp</a>.</p> + +</div> +</div> +<h2 class="groupheader">Member Function Documentation</h2> +<a id="aa07ee7bf5d61658f33e4a7571205ae5c"></a> +<h2 class="memtitle"><span class="permalink"><a href="#aa07ee7bf5d61658f33e4a7571205ae5c">◆ </a></span>query()</h2> + +<div class="memitem"> +<div class="memproto"> +<table class="mlabels"> + <tr> + <td class="mlabels-left"> + <table class="memname"> + <tr> + <td class="memname"><a class="el" href="classwinapi_1_1CommandLine.html">CommandLine</a> winapi::CommandLine::query </td> + <td>(</td> + <td class="paramname"></td><td>)</td> + <td></td> + </tr> + </table> + </td> + <td class="mlabels-right"> +<span class="mlabels"><span class="mlabel">static</span></span> </td> + </tr> +</table> +</div><div class="memdoc"> +<p>Get the command line used to launch this process. </p> + +<p class="definition">Definition at line <a class="el" href="cmd__line_8cpp_source.html#l00075">75</a> of file <a class="el" href="cmd__line_8cpp_source.html">cmd_line.cpp</a>.</p> + +</div> +</div> +<a id="aabafd2d1d923c30c3da372909857e87e"></a> +<h2 class="memtitle"><span class="permalink"><a href="#aabafd2d1d923c30c3da372909857e87e">◆ </a></span>parse()</h2> + +<div class="memitem"> +<div class="memproto"> +<table class="mlabels"> + <tr> + <td class="mlabels-left"> + <table class="memname"> + <tr> + <td class="memname"><a class="el" href="classwinapi_1_1CommandLine.html">CommandLine</a> winapi::CommandLine::parse </td> + <td>(</td> + <td class="paramtype">const std::string & </td> + <td class="paramname"><em>src</em></td><td>)</td> + <td></td> + </tr> + </table> + </td> + <td class="mlabels-right"> +<span class="mlabels"><span class="mlabel">static</span></span> </td> + </tr> +</table> +</div><div class="memdoc"> +<p>Parse a command line from a string. </p><dl class="params"><dt>Parameters</dt><dd> + <table class="params"> + <tr><td class="paramname">src</td><td>UTF-8 encoded string. </td></tr> + </table> + </dd> +</dl> + +<p class="definition">Definition at line <a class="el" href="cmd__line_8cpp_source.html#l00079">79</a> of file <a class="el" href="cmd__line_8cpp_source.html">cmd_line.cpp</a>.</p> + +</div> +</div> +<a id="a7a7bc2a7461f2f275a12c9fda23d312d"></a> +<h2 class="memtitle"><span class="permalink"><a href="#a7a7bc2a7461f2f275a12c9fda23d312d">◆ </a></span>from_main()</h2> + +<div class="memitem"> +<div class="memproto"> +<table class="mlabels"> + <tr> + <td class="mlabels-left"> + <table class="memname"> + <tr> + <td class="memname"><a class="el" href="classwinapi_1_1CommandLine.html">CommandLine</a> winapi::CommandLine::from_main </td> + <td>(</td> + <td class="paramtype">int </td> + <td class="paramname"><em>argc</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">wchar_t * </td> + <td class="paramname"><em>argv</em>[] </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td> + </tr> + </table> + </td> + <td class="mlabels-right"> +<span class="mlabels"><span class="mlabel">static</span></span> </td> + </tr> +</table> +</div><div class="memdoc"> +<p>Build a command line from main() arguments. </p><dl class="params"><dt>Parameters</dt><dd> + <table class="params"> + <tr><td class="paramname">argc</td><td>Length of the argv array. </td></tr> + <tr><td class="paramname">argv</td><td>UTF-16 encoded strings. </td></tr> + </table> + </dd> +</dl> + +<p class="definition">Definition at line <a class="el" href="cmd__line_8cpp_source.html#l00083">83</a> of file <a class="el" href="cmd__line_8cpp_source.html">cmd_line.cpp</a>.</p> + +</div> +</div> +<a id="ac47e738f255a85b3e0605d40c0124b24"></a> +<h2 class="memtitle"><span class="permalink"><a href="#ac47e738f255a85b3e0605d40c0124b24">◆ </a></span>to_string()</h2> + +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">std::string winapi::CommandLine::to_string </td> + <td>(</td> + <td class="paramname"></td><td>)</td> + <td> const</td> + </tr> + </table> +</div><div class="memdoc"> +<p>Build a string that represents this command line. </p><dl class="section return"><dt>Returns</dt><dd>UTF-8 string. </dd></dl> + +<p class="definition">Definition at line <a class="el" href="cmd__line_8cpp_source.html#l00138">138</a> of file <a class="el" href="cmd__line_8cpp_source.html">cmd_line.cpp</a>.</p> + +</div> +</div> +<a id="afb35d8d6d2b8b66bd6f21d0adc37017f"></a> +<h2 class="memtitle"><span class="permalink"><a href="#afb35d8d6d2b8b66bd6f21d0adc37017f">◆ </a></span>args_to_string()</h2> + +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">std::string winapi::CommandLine::args_to_string </td> + <td>(</td> + <td class="paramname"></td><td>)</td> + <td> const</td> + </tr> + </table> +</div><div class="memdoc"> +<p>Build a string that represents this command line, but omit argv[0]. </p><dl class="section return"><dt>Returns</dt><dd>UTF-8 string. </dd></dl> + +<p class="definition">Definition at line <a class="el" href="cmd__line_8cpp_source.html#l00142">142</a> of file <a class="el" href="cmd__line_8cpp_source.html">cmd_line.cpp</a>.</p> + +</div> +</div> +<a id="a8f75a5f374397c1c1dcc4900bf44ee32"></a> +<h2 class="memtitle"><span class="permalink"><a href="#a8f75a5f374397c1c1dcc4900bf44ee32">◆ </a></span>get_argv0()</h2> + +<div class="memitem"> +<div class="memproto"> +<table class="mlabels"> + <tr> + <td class="mlabels-left"> + <table class="memname"> + <tr> + <td class="memname">std::string winapi::CommandLine::get_argv0 </td> + <td>(</td> + <td class="paramname"></td><td>)</td> + <td> const</td> + </tr> + </table> + </td> + <td class="mlabels-right"> +<span class="mlabels"><span class="mlabel">inline</span></span> </td> + </tr> +</table> +</div><div class="memdoc"> +<p>Get argv[0] for this command line. </p><dl class="section return"><dt>Returns</dt><dd>UTF-8 string. </dd></dl> + +<p class="definition">Definition at line <a class="el" href="cmd__line_8hpp_source.html#l00087">87</a> of file <a class="el" href="cmd__line_8hpp_source.html">cmd_line.hpp</a>.</p> + +</div> +</div> +<a id="ae87fa727498660661753d2d456873033"></a> +<h2 class="memtitle"><span class="permalink"><a href="#ae87fa727498660661753d2d456873033">◆ </a></span>has_args()</h2> + +<div class="memitem"> +<div class="memproto"> +<table class="mlabels"> + <tr> + <td class="mlabels-left"> + <table class="memname"> + <tr> + <td class="memname">bool winapi::CommandLine::has_args </td> + <td>(</td> + <td class="paramname"></td><td>)</td> + <td> const</td> + </tr> + </table> + </td> + <td class="mlabels-right"> +<span class="mlabels"><span class="mlabel">inline</span></span> </td> + </tr> +</table> +</div><div class="memdoc"> +<p>Test if this command line has any additional arguments besides argv[0]. </p> + +<p class="definition">Definition at line <a class="el" href="cmd__line_8hpp_source.html#l00090">90</a> of file <a class="el" href="cmd__line_8hpp_source.html">cmd_line.hpp</a>.</p> + +</div> +</div> +<a id="aef5ea9b427d975af8e64948802b54af4"></a> +<h2 class="memtitle"><span class="permalink"><a href="#aef5ea9b427d975af8e64948802b54af4">◆ </a></span>get_args()</h2> + +<div class="memitem"> +<div class="memproto"> +<table class="mlabels"> + <tr> + <td class="mlabels-left"> + <table class="memname"> + <tr> + <td class="memname">const std::vector<std::string>& winapi::CommandLine::get_args </td> + <td>(</td> + <td class="paramname"></td><td>)</td> + <td> const</td> + </tr> + </table> + </td> + <td class="mlabels-right"> +<span class="mlabels"><span class="mlabel">inline</span></span> </td> + </tr> +</table> +</div><div class="memdoc"> +<p>Get list of arguments for this command line beyond argv[0]. </p><dl class="section return"><dt>Returns</dt><dd>List of UTF-8 strings. </dd></dl> + +<p class="definition">Definition at line <a class="el" href="cmd__line_8hpp_source.html#l00096">96</a> of file <a class="el" href="cmd__line_8hpp_source.html">cmd_line.hpp</a>.</p> + +</div> +</div> +<a id="ac21d30a214f529f80b91186e9724cf41"></a> +<h2 class="memtitle"><span class="permalink"><a href="#ac21d30a214f529f80b91186e9724cf41">◆ </a></span>get_argv()</h2> + +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">std::vector< std::string > winapi::CommandLine::get_argv </td> + <td>(</td> + <td class="paramname"></td><td>)</td> + <td> const</td> + </tr> + </table> +</div><div class="memdoc"> +<p>Get list of arguments for this command line. </p><dl class="section return"><dt>Returns</dt><dd>List of UTF-8 strings. </dd></dl> + +<p class="definition">Definition at line <a class="el" href="cmd__line_8cpp_source.html#l00146">146</a> of file <a class="el" href="cmd__line_8cpp_source.html">cmd_line.cpp</a>.</p> + +</div> +</div> +<hr/>The documentation for this class was generated from the following files:<ul> +<li>include/winapi/<a class="el" href="cmd__line_8hpp_source.html">cmd_line.hpp</a></li> +<li>src/<a class="el" href="cmd__line_8cpp_source.html">cmd_line.cpp</a></li> +</ul> +</div><!-- contents --> +<!-- start footer part --> +<hr class="footer"/><address class="footer"><small> +Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 +</small></address> +</body> +</html> |