/usr/share/doc/libpstreams-dev/html/classredi_1_1basic__ipstream.html is in libpstreams-dev 1.0.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>PStreams: redi::basic_ipstream< CharT, Traits > Class Template 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="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">PStreams
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespaceredi.html">redi</a></li><li class="navelem"><a class="el" href="classredi_1_1basic__ipstream.html">basic_ipstream</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-types">Public Types</a> |
<a href="#pub-methods">Public Member Functions</a> |
<a href="#pub-static-attribs">Static Public Attributes</a> |
<a href="#pro-types">Protected Types</a> |
<a href="#pro-methods">Protected Member Functions</a> |
<a href="#pro-attribs">Protected Attributes</a> |
<a href="classredi_1_1basic__ipstream-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">redi::basic_ipstream< CharT, Traits > Class Template Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Class template for Input PStreams.
<a href="classredi_1_1basic__ipstream.html#details">More...</a></p>
<p><code>#include <<a class="el" href="pstream_8h_source.html">pstream.h</a>></code></p>
<div class="dynheader">
Inheritance diagram for redi::basic_ipstream< CharT, Traits >:</div>
<div class="dyncontent">
<div class="center">
<img src="classredi_1_1basic__ipstream.png" usemap="#redi::basic_5Fipstream_3C_20CharT_2C_20Traits_20_3E_map" alt=""/>
<map id="redi::basic_5Fipstream_3C_20CharT_2C_20Traits_20_3E_map" name="redi::basic_5Fipstream_3C_20CharT_2C_20Traits_20_3E_map">
<area href="classredi_1_1pstream__common.html" title="Class template for common base class. " alt="redi::pstream_common< CharT, Traits >" shape="rect" coords="246,56,482,80"/>
<area href="structredi_1_1pstreams.html" title="Common base class providing constants and typenames. " alt="redi::pstreams" shape="rect" coords="492,56,728,80"/>
<area href="structredi_1_1pstreams.html" title="Common base class providing constants and typenames. " alt="redi::pstreams" shape="rect" coords="369,0,605,24"/>
</map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:acdb01dd760c82d233369511f43164663"><td class="memItemLeft" align="right" valign="top"><a id="acdb01dd760c82d233369511f43164663"></a>
typedef pbase_type::pmode </td><td class="memItemRight" valign="bottom"><a class="el" href="classredi_1_1basic__ipstream.html#acdb01dd760c82d233369511f43164663">pmode</a></td></tr>
<tr class="memdesc:acdb01dd760c82d233369511f43164663"><td class="mdescLeft"> </td><td class="mdescRight">Type used to specify how to connect to the process. <br /></td></tr>
<tr class="separator:acdb01dd760c82d233369511f43164663"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9f9103494564d72e0e950a7534d2b26d"><td class="memItemLeft" align="right" valign="top"><a id="a9f9103494564d72e0e950a7534d2b26d"></a>
typedef pbase_type::argv_type </td><td class="memItemRight" valign="bottom"><a class="el" href="classredi_1_1basic__ipstream.html#a9f9103494564d72e0e950a7534d2b26d">argv_type</a></td></tr>
<tr class="memdesc:a9f9103494564d72e0e950a7534d2b26d"><td class="mdescLeft"> </td><td class="mdescRight">Type used to hold the arguments for a command. <br /></td></tr>
<tr class="separator:a9f9103494564d72e0e950a7534d2b26d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:add0b7eaed16eb6c22a56012958d85b1d"><td class="memItemLeft" align="right" valign="top"><a id="add0b7eaed16eb6c22a56012958d85b1d"></a>
typedef int </td><td class="memItemRight" valign="bottom"><a class="el" href="structredi_1_1pstreams.html#add0b7eaed16eb6c22a56012958d85b1d">fd_type</a></td></tr>
<tr class="memdesc:add0b7eaed16eb6c22a56012958d85b1d"><td class="mdescLeft"> </td><td class="mdescRight">Type used for file descriptors. <br /></td></tr>
<tr class="separator:add0b7eaed16eb6c22a56012958d85b1d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:add0b7eaed16eb6c22a56012958d85b1d"><td class="memItemLeft" align="right" valign="top"><a id="add0b7eaed16eb6c22a56012958d85b1d"></a>
typedef int </td><td class="memItemRight" valign="bottom"><a class="el" href="structredi_1_1pstreams.html#add0b7eaed16eb6c22a56012958d85b1d">fd_type</a></td></tr>
<tr class="memdesc:add0b7eaed16eb6c22a56012958d85b1d"><td class="mdescLeft"> </td><td class="mdescRight">Type used for file descriptors. <br /></td></tr>
<tr class="separator:add0b7eaed16eb6c22a56012958d85b1d"><td class="memSeparator" colspan="2"> </td></tr>
</table><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:a74223c8486e0f59c18f706af416dc616"><td class="memItemLeft" align="right" valign="top"><a id="a74223c8486e0f59c18f706af416dc616"></a>
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classredi_1_1basic__ipstream.html#a74223c8486e0f59c18f706af416dc616">basic_ipstream</a> ()</td></tr>
<tr class="memdesc:a74223c8486e0f59c18f706af416dc616"><td class="mdescLeft"> </td><td class="mdescRight">Default constructor, creates an uninitialised stream. <br /></td></tr>
<tr class="separator:a74223c8486e0f59c18f706af416dc616"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac9abde4c112c0d8e6680a6e78f9040f9"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classredi_1_1basic__ipstream.html#ac9abde4c112c0d8e6680a6e78f9040f9">basic_ipstream</a> (const std::string &cmd, <a class="el" href="structredi_1_1pstreams.html#a1eae4aad88812af03a0fbb3ec13c50b7">pmode</a> mode=<a class="el" href="structredi_1_1pstreams.html#ad3c6d53a98de4566478b1c40c101a42b">pstdout</a>)</td></tr>
<tr class="memdesc:ac9abde4c112c0d8e6680a6e78f9040f9"><td class="mdescLeft"> </td><td class="mdescRight">Constructor that initialises the stream by starting a process. <a href="#ac9abde4c112c0d8e6680a6e78f9040f9">More...</a><br /></td></tr>
<tr class="separator:ac9abde4c112c0d8e6680a6e78f9040f9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5aac4d83300cfca6dfcdf6632c900a4d"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classredi_1_1basic__ipstream.html#a5aac4d83300cfca6dfcdf6632c900a4d">basic_ipstream</a> (const std::string &file, const <a class="el" href="structredi_1_1pstreams.html#af902b894b095c1875e96c10129489467">argv_type</a> &argv, <a class="el" href="structredi_1_1pstreams.html#a1eae4aad88812af03a0fbb3ec13c50b7">pmode</a> mode=<a class="el" href="structredi_1_1pstreams.html#ad3c6d53a98de4566478b1c40c101a42b">pstdout</a>)</td></tr>
<tr class="memdesc:a5aac4d83300cfca6dfcdf6632c900a4d"><td class="mdescLeft"> </td><td class="mdescRight">Constructor that initialises the stream by starting a process. <a href="#a5aac4d83300cfca6dfcdf6632c900a4d">More...</a><br /></td></tr>
<tr class="separator:a5aac4d83300cfca6dfcdf6632c900a4d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6a7ac02dc687d8143dbe64c50f2d82d6"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classredi_1_1basic__ipstream.html#a6a7ac02dc687d8143dbe64c50f2d82d6">basic_ipstream</a> (const <a class="el" href="structredi_1_1pstreams.html#af902b894b095c1875e96c10129489467">argv_type</a> &argv, <a class="el" href="structredi_1_1pstreams.html#a1eae4aad88812af03a0fbb3ec13c50b7">pmode</a> mode=<a class="el" href="structredi_1_1pstreams.html#ad3c6d53a98de4566478b1c40c101a42b">pstdout</a>)</td></tr>
<tr class="memdesc:a6a7ac02dc687d8143dbe64c50f2d82d6"><td class="mdescLeft"> </td><td class="mdescRight">Constructor that initialises the stream by starting a process. <a href="#a6a7ac02dc687d8143dbe64c50f2d82d6">More...</a><br /></td></tr>
<tr class="separator:a6a7ac02dc687d8143dbe64c50f2d82d6"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8be5caacc66851d26a8377d90ec1923c"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classredi_1_1basic__ipstream.html#a8be5caacc66851d26a8377d90ec1923c">~basic_ipstream</a> ()</td></tr>
<tr class="memdesc:a8be5caacc66851d26a8377d90ec1923c"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#a8be5caacc66851d26a8377d90ec1923c">More...</a><br /></td></tr>
<tr class="separator:a8be5caacc66851d26a8377d90ec1923c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aadcf86d0692356fef3bb4f1cb59e8a0d"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classredi_1_1basic__ipstream.html#aadcf86d0692356fef3bb4f1cb59e8a0d">open</a> (const std::string &cmd, <a class="el" href="structredi_1_1pstreams.html#a1eae4aad88812af03a0fbb3ec13c50b7">pmode</a> mode=<a class="el" href="structredi_1_1pstreams.html#ad3c6d53a98de4566478b1c40c101a42b">pstdout</a>)</td></tr>
<tr class="memdesc:aadcf86d0692356fef3bb4f1cb59e8a0d"><td class="mdescLeft"> </td><td class="mdescRight">Start a process. <a href="#aadcf86d0692356fef3bb4f1cb59e8a0d">More...</a><br /></td></tr>
<tr class="separator:aadcf86d0692356fef3bb4f1cb59e8a0d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a99a26c32db5009fe0be34efb466a9eea"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classredi_1_1basic__ipstream.html#a99a26c32db5009fe0be34efb466a9eea">open</a> (const std::string &file, const <a class="el" href="structredi_1_1pstreams.html#af902b894b095c1875e96c10129489467">argv_type</a> &argv, <a class="el" href="structredi_1_1pstreams.html#a1eae4aad88812af03a0fbb3ec13c50b7">pmode</a> mode=<a class="el" href="structredi_1_1pstreams.html#ad3c6d53a98de4566478b1c40c101a42b">pstdout</a>)</td></tr>
<tr class="memdesc:a99a26c32db5009fe0be34efb466a9eea"><td class="mdescLeft"> </td><td class="mdescRight">Start a process. <a href="#a99a26c32db5009fe0be34efb466a9eea">More...</a><br /></td></tr>
<tr class="separator:a99a26c32db5009fe0be34efb466a9eea"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a421171ef24c9f6b68b023e5ab30d9581"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classredi_1_1basic__ipstream.html">basic_ipstream</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classredi_1_1basic__ipstream.html#a421171ef24c9f6b68b023e5ab30d9581">out</a> ()</td></tr>
<tr class="memdesc:a421171ef24c9f6b68b023e5ab30d9581"><td class="mdescLeft"> </td><td class="mdescRight">Set streambuf to read from process' <code>stdout</code>. <a href="#a421171ef24c9f6b68b023e5ab30d9581">More...</a><br /></td></tr>
<tr class="separator:a421171ef24c9f6b68b023e5ab30d9581"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7057a0f44305277d67ee86e653e486e6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classredi_1_1basic__ipstream.html">basic_ipstream</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classredi_1_1basic__ipstream.html#a7057a0f44305277d67ee86e653e486e6">err</a> ()</td></tr>
<tr class="memdesc:a7057a0f44305277d67ee86e653e486e6"><td class="mdescLeft"> </td><td class="mdescRight">Set streambuf to read from process' <code>stderr</code>. <a href="#a7057a0f44305277d67ee86e653e486e6">More...</a><br /></td></tr>
<tr class="separator:a7057a0f44305277d67ee86e653e486e6"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab06458ed9aea84a33489f05ec8ed0899"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classredi_1_1pstream__common.html#ab06458ed9aea84a33489f05ec8ed0899">close</a> ()</td></tr>
<tr class="memdesc:ab06458ed9aea84a33489f05ec8ed0899"><td class="mdescLeft"> </td><td class="mdescRight">Close the pipe. <a href="#ab06458ed9aea84a33489f05ec8ed0899">More...</a><br /></td></tr>
<tr class="separator:ab06458ed9aea84a33489f05ec8ed0899"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8d5ec13821e09f4bb2ab5096721551a5"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classredi_1_1pstream__common.html#a8d5ec13821e09f4bb2ab5096721551a5">is_open</a> () const</td></tr>
<tr class="memdesc:a8d5ec13821e09f4bb2ab5096721551a5"><td class="mdescLeft"> </td><td class="mdescRight">Report whether the stream's buffer has been initialised. <a href="#a8d5ec13821e09f4bb2ab5096721551a5">More...</a><br /></td></tr>
<tr class="separator:a8d5ec13821e09f4bb2ab5096721551a5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:acc3ad87315e0bce58714314b303b4b53"><td class="memItemLeft" align="right" valign="top">const std::string & </td><td class="memItemRight" valign="bottom"><a class="el" href="classredi_1_1pstream__common.html#acc3ad87315e0bce58714314b303b4b53">command</a> () const</td></tr>
<tr class="memdesc:acc3ad87315e0bce58714314b303b4b53"><td class="mdescLeft"> </td><td class="mdescRight">Return the command used to initialise the stream. <a href="#acc3ad87315e0bce58714314b303b4b53">More...</a><br /></td></tr>
<tr class="separator:acc3ad87315e0bce58714314b303b4b53"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5414d5a3f3d91a9483d5c9128434db26"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classredi_1_1basic__pstreambuf.html">streambuf_type</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classredi_1_1pstream__common.html#a5414d5a3f3d91a9483d5c9128434db26">rdbuf</a> () const</td></tr>
<tr class="memdesc:a5414d5a3f3d91a9483d5c9128434db26"><td class="mdescLeft"> </td><td class="mdescRight">Return a pointer to the stream buffer. <a href="#a5414d5a3f3d91a9483d5c9128434db26">More...</a><br /></td></tr>
<tr class="separator:a5414d5a3f3d91a9483d5c9128434db26"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr class="memitem:a7a976ce992db857f86a0cc3352e42d3a"><td class="memItemLeft" align="right" valign="top"><a id="a7a976ce992db857f86a0cc3352e42d3a"></a>
static const <a class="el" href="structredi_1_1pstreams.html#a1eae4aad88812af03a0fbb3ec13c50b7">pmode</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structredi_1_1pstreams.html#a7a976ce992db857f86a0cc3352e42d3a">pstdin</a> = std::ios_base::out</td></tr>
<tr class="memdesc:a7a976ce992db857f86a0cc3352e42d3a"><td class="mdescLeft"> </td><td class="mdescRight">Write to stdin. <br /></td></tr>
<tr class="separator:a7a976ce992db857f86a0cc3352e42d3a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad3c6d53a98de4566478b1c40c101a42b"><td class="memItemLeft" align="right" valign="top"><a id="ad3c6d53a98de4566478b1c40c101a42b"></a>
static const <a class="el" href="structredi_1_1pstreams.html#a1eae4aad88812af03a0fbb3ec13c50b7">pmode</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structredi_1_1pstreams.html#ad3c6d53a98de4566478b1c40c101a42b">pstdout</a> = std::ios_base::in</td></tr>
<tr class="memdesc:ad3c6d53a98de4566478b1c40c101a42b"><td class="mdescLeft"> </td><td class="mdescRight">Read from stdout. <br /></td></tr>
<tr class="separator:ad3c6d53a98de4566478b1c40c101a42b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a423b8ad263d442ba726b5f8e5812b7ef"><td class="memItemLeft" align="right" valign="top"><a id="a423b8ad263d442ba726b5f8e5812b7ef"></a>
static const <a class="el" href="structredi_1_1pstreams.html#a1eae4aad88812af03a0fbb3ec13c50b7">pmode</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structredi_1_1pstreams.html#a423b8ad263d442ba726b5f8e5812b7ef">pstderr</a> = std::ios_base::app</td></tr>
<tr class="memdesc:a423b8ad263d442ba726b5f8e5812b7ef"><td class="mdescLeft"> </td><td class="mdescRight">Read from stderr. <br /></td></tr>
<tr class="separator:a423b8ad263d442ba726b5f8e5812b7ef"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a83cbc4d00cb5fb1e2f38403781367d12"><td class="memItemLeft" align="right" valign="top"><a id="a83cbc4d00cb5fb1e2f38403781367d12"></a>
static const <a class="el" href="structredi_1_1pstreams.html#a1eae4aad88812af03a0fbb3ec13c50b7">pmode</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structredi_1_1pstreams.html#a83cbc4d00cb5fb1e2f38403781367d12">newpg</a> = std::ios_base::trunc</td></tr>
<tr class="memdesc:a83cbc4d00cb5fb1e2f38403781367d12"><td class="mdescLeft"> </td><td class="mdescRight">Create a new process group for the child process. <br /></td></tr>
<tr class="separator:a83cbc4d00cb5fb1e2f38403781367d12"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7a976ce992db857f86a0cc3352e42d3a"><td class="memItemLeft" align="right" valign="top"><a id="a7a976ce992db857f86a0cc3352e42d3a"></a>
static const <a class="el" href="structredi_1_1pstreams.html#a1eae4aad88812af03a0fbb3ec13c50b7">pmode</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structredi_1_1pstreams.html#a7a976ce992db857f86a0cc3352e42d3a">pstdin</a> = std::ios_base::out</td></tr>
<tr class="memdesc:a7a976ce992db857f86a0cc3352e42d3a"><td class="mdescLeft"> </td><td class="mdescRight">Write to stdin. <br /></td></tr>
<tr class="separator:a7a976ce992db857f86a0cc3352e42d3a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad3c6d53a98de4566478b1c40c101a42b"><td class="memItemLeft" align="right" valign="top"><a id="ad3c6d53a98de4566478b1c40c101a42b"></a>
static const <a class="el" href="structredi_1_1pstreams.html#a1eae4aad88812af03a0fbb3ec13c50b7">pmode</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structredi_1_1pstreams.html#ad3c6d53a98de4566478b1c40c101a42b">pstdout</a> = std::ios_base::in</td></tr>
<tr class="memdesc:ad3c6d53a98de4566478b1c40c101a42b"><td class="mdescLeft"> </td><td class="mdescRight">Read from stdout. <br /></td></tr>
<tr class="separator:ad3c6d53a98de4566478b1c40c101a42b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a423b8ad263d442ba726b5f8e5812b7ef"><td class="memItemLeft" align="right" valign="top"><a id="a423b8ad263d442ba726b5f8e5812b7ef"></a>
static const <a class="el" href="structredi_1_1pstreams.html#a1eae4aad88812af03a0fbb3ec13c50b7">pmode</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structredi_1_1pstreams.html#a423b8ad263d442ba726b5f8e5812b7ef">pstderr</a> = std::ios_base::app</td></tr>
<tr class="memdesc:a423b8ad263d442ba726b5f8e5812b7ef"><td class="mdescLeft"> </td><td class="mdescRight">Read from stderr. <br /></td></tr>
<tr class="separator:a423b8ad263d442ba726b5f8e5812b7ef"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a83cbc4d00cb5fb1e2f38403781367d12"><td class="memItemLeft" align="right" valign="top"><a id="a83cbc4d00cb5fb1e2f38403781367d12"></a>
static const <a class="el" href="structredi_1_1pstreams.html#a1eae4aad88812af03a0fbb3ec13c50b7">pmode</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="structredi_1_1pstreams.html#a83cbc4d00cb5fb1e2f38403781367d12">newpg</a> = std::ios_base::trunc</td></tr>
<tr class="memdesc:a83cbc4d00cb5fb1e2f38403781367d12"><td class="mdescLeft"> </td><td class="mdescRight">Create a new process group for the child process. <br /></td></tr>
<tr class="separator:a83cbc4d00cb5fb1e2f38403781367d12"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-types"></a>
Protected Types</h2></td></tr>
<tr class="memitem:a7c3039b2db5ac78069d4c8022e700bd8"><td class="memItemLeft" align="right" valign="top"><a id="a7c3039b2db5ac78069d4c8022e700bd8"></a>
typedef <a class="el" href="classredi_1_1basic__pstreambuf.html">basic_pstreambuf</a>< CharT, Traits > </td><td class="memItemRight" valign="bottom"><b>streambuf_type</b></td></tr>
<tr class="separator:a7c3039b2db5ac78069d4c8022e700bd8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8d6000f42f7001c3c69d22f35551ae59"><td class="memItemLeft" align="right" valign="top"><a id="a8d6000f42f7001c3c69d22f35551ae59"></a>enum  </td><td class="memItemRight" valign="bottom">{ <b>bufsz</b> = 32
}</td></tr>
<tr class="separator:a8d6000f42f7001c3c69d22f35551ae59"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9bff4a02e7fed3943fd197d4cc3a887a"><td class="memItemLeft" align="right" valign="top"><a id="a9bff4a02e7fed3943fd197d4cc3a887a"></a>enum  </td><td class="memItemRight" valign="bottom">{ <b>pbsz</b> = 2
}</td></tr>
<tr class="separator:a9bff4a02e7fed3943fd197d4cc3a887a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8d6000f42f7001c3c69d22f35551ae59"><td class="memItemLeft" align="right" valign="top"><a id="a8d6000f42f7001c3c69d22f35551ae59"></a>enum  </td><td class="memItemRight" valign="bottom">{ <b>bufsz</b> = 32
}</td></tr>
<tr class="separator:a8d6000f42f7001c3c69d22f35551ae59"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9bff4a02e7fed3943fd197d4cc3a887a"><td class="memItemLeft" align="right" valign="top"><a id="a9bff4a02e7fed3943fd197d4cc3a887a"></a>enum  </td><td class="memItemRight" valign="bottom">{ <b>pbsz</b> = 2
}</td></tr>
<tr class="separator:a9bff4a02e7fed3943fd197d4cc3a887a"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a2505ab3e3a834b92d98b5bcb97734dfe"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classredi_1_1pstream__common.html#a2505ab3e3a834b92d98b5bcb97734dfe">do_open</a> (const std::string &cmd, <a class="el" href="structredi_1_1pstreams.html#a1eae4aad88812af03a0fbb3ec13c50b7">pmode</a> mode)</td></tr>
<tr class="memdesc:a2505ab3e3a834b92d98b5bcb97734dfe"><td class="mdescLeft"> </td><td class="mdescRight">Start a process. <a href="#a2505ab3e3a834b92d98b5bcb97734dfe">More...</a><br /></td></tr>
<tr class="separator:a2505ab3e3a834b92d98b5bcb97734dfe"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a352b77fa600f7ebe0d8f1582be05ae4d"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classredi_1_1pstream__common.html#a352b77fa600f7ebe0d8f1582be05ae4d">do_open</a> (const std::string &file, const <a class="el" href="structredi_1_1pstreams.html#af902b894b095c1875e96c10129489467">argv_type</a> &argv, <a class="el" href="structredi_1_1pstreams.html#a1eae4aad88812af03a0fbb3ec13c50b7">pmode</a> mode)</td></tr>
<tr class="memdesc:a352b77fa600f7ebe0d8f1582be05ae4d"><td class="mdescLeft"> </td><td class="mdescRight">Start a process. <a href="#a352b77fa600f7ebe0d8f1582be05ae4d">More...</a><br /></td></tr>
<tr class="separator:a352b77fa600f7ebe0d8f1582be05ae4d"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:aa97d67284ce2fb39e26fa504d611b50c"><td class="memItemLeft" align="right" valign="top"><a id="aa97d67284ce2fb39e26fa504d611b50c"></a>
std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classredi_1_1pstream__common.html#aa97d67284ce2fb39e26fa504d611b50c">command_</a></td></tr>
<tr class="memdesc:aa97d67284ce2fb39e26fa504d611b50c"><td class="mdescLeft"> </td><td class="mdescRight">The command used to start the process. <br /></td></tr>
<tr class="separator:aa97d67284ce2fb39e26fa504d611b50c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a59dd7e8a056e4e66d67f31c1ef0bfff4"><td class="memItemLeft" align="right" valign="top"><a id="a59dd7e8a056e4e66d67f31c1ef0bfff4"></a>
<a class="el" href="classredi_1_1basic__pstreambuf.html">streambuf_type</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classredi_1_1pstream__common.html#a59dd7e8a056e4e66d67f31c1ef0bfff4">buf_</a></td></tr>
<tr class="memdesc:a59dd7e8a056e4e66d67f31c1ef0bfff4"><td class="mdescLeft"> </td><td class="mdescRight">The stream buffer. <br /></td></tr>
<tr class="separator:a59dd7e8a056e4e66d67f31c1ef0bfff4"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template<typename CharT, typename Traits = std::char_traits<CharT>><br />
class redi::basic_ipstream< CharT, Traits ></h3>
<p>Class template for Input PStreams. </p>
<p>Reading from an ipstream reads the command's standard output and/or standard error (depending on how the ipstream is opened) and the command's standard input is the same as that of the process that created the object, unless altered by the command itself. </p>
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
<a id="ac9abde4c112c0d8e6680a6e78f9040f9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac9abde4c112c0d8e6680a6e78f9040f9">◆ </a></span>basic_ipstream() <span class="overload">[1/3]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename CharT , typename Traits = std::char_traits<CharT>> </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classredi_1_1basic__ipstream.html">redi::basic_ipstream</a>< CharT, Traits >::<a class="el" href="classredi_1_1basic__ipstream.html">basic_ipstream</a> </td>
<td>(</td>
<td class="paramtype">const std::string & </td>
<td class="paramname"><em>cmd</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structredi_1_1pstreams.html#a1eae4aad88812af03a0fbb3ec13c50b7">pmode</a> </td>
<td class="paramname"><em>mode</em> = <code><a class="el" href="structredi_1_1pstreams.html#ad3c6d53a98de4566478b1c40c101a42b">pstdout</a></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>Constructor that initialises the stream by starting a process. </p>
<p>Initialises the stream buffer by calling <a class="el" href="classredi_1_1pstream__common.html#a2505ab3e3a834b92d98b5bcb97734dfe" title="Start a process. ">do_open()</a> with the supplied arguments.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">cmd</td><td>a string containing a shell command. </td></tr>
<tr><td class="paramname">mode</td><td>the I/O mode to use when opening the pipe. </td></tr>
</table>
</dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classredi_1_1pstream__common.html#a2505ab3e3a834b92d98b5bcb97734dfe" title="Start a process. ">do_open(const std::string&, pmode)</a> </dd></dl>
</div>
</div>
<a id="a5aac4d83300cfca6dfcdf6632c900a4d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5aac4d83300cfca6dfcdf6632c900a4d">◆ </a></span>basic_ipstream() <span class="overload">[2/3]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename CharT , typename Traits = std::char_traits<CharT>> </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classredi_1_1basic__ipstream.html">redi::basic_ipstream</a>< CharT, Traits >::<a class="el" href="classredi_1_1basic__ipstream.html">basic_ipstream</a> </td>
<td>(</td>
<td class="paramtype">const std::string & </td>
<td class="paramname"><em>file</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="structredi_1_1pstreams.html#af902b894b095c1875e96c10129489467">argv_type</a> & </td>
<td class="paramname"><em>argv</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structredi_1_1pstreams.html#a1eae4aad88812af03a0fbb3ec13c50b7">pmode</a> </td>
<td class="paramname"><em>mode</em> = <code><a class="el" href="structredi_1_1pstreams.html#ad3c6d53a98de4566478b1c40c101a42b">pstdout</a></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> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Constructor that initialises the stream by starting a process. </p>
<p>Initialises the stream buffer by calling <a class="el" href="classredi_1_1pstream__common.html#a2505ab3e3a834b92d98b5bcb97734dfe" title="Start a process. ">do_open()</a> with the supplied arguments.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">file</td><td>a string containing the pathname of a program to execute. </td></tr>
<tr><td class="paramname">argv</td><td>a vector of argument strings passed to the new program. </td></tr>
<tr><td class="paramname">mode</td><td>the I/O mode to use when opening the pipe. </td></tr>
</table>
</dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classredi_1_1pstream__common.html#a352b77fa600f7ebe0d8f1582be05ae4d" title="Start a process. ">do_open(const std::string&, const argv_type&, pmode)</a> </dd></dl>
</div>
</div>
<a id="a6a7ac02dc687d8143dbe64c50f2d82d6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6a7ac02dc687d8143dbe64c50f2d82d6">◆ </a></span>basic_ipstream() <span class="overload">[3/3]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename CharT , typename Traits = std::char_traits<CharT>> </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classredi_1_1basic__ipstream.html">redi::basic_ipstream</a>< CharT, Traits >::<a class="el" href="classredi_1_1basic__ipstream.html">basic_ipstream</a> </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="structredi_1_1pstreams.html#af902b894b095c1875e96c10129489467">argv_type</a> & </td>
<td class="paramname"><em>argv</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structredi_1_1pstreams.html#a1eae4aad88812af03a0fbb3ec13c50b7">pmode</a> </td>
<td class="paramname"><em>mode</em> = <code><a class="el" href="structredi_1_1pstreams.html#ad3c6d53a98de4566478b1c40c101a42b">pstdout</a></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>Constructor that initialises the stream by starting a process. </p>
<p>Initialises the stream buffer by calling <code>do_open</code>(argv[0],argv,mode|pstdout)</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">argv</td><td>a vector of argument strings passed to the new program. </td></tr>
<tr><td class="paramname">mode</td><td>the I/O mode to use when opening the pipe. </td></tr>
</table>
</dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classredi_1_1pstream__common.html#a352b77fa600f7ebe0d8f1582be05ae4d" title="Start a process. ">do_open(const std::string&, const argv_type&, pmode)</a> </dd></dl>
<p class="reference">References <a class="el" href="structredi_1_1pstreams.html#ad3c6d53a98de4566478b1c40c101a42b">redi::pstreams::pstdout</a>.</p>
</div>
</div>
<a id="a8be5caacc66851d26a8377d90ec1923c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8be5caacc66851d26a8377d90ec1923c">◆ </a></span>~basic_ipstream()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename CharT , typename Traits = std::char_traits<CharT>> </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classredi_1_1basic__ipstream.html">redi::basic_ipstream</a>< CharT, Traits >::~<a class="el" href="classredi_1_1basic__ipstream.html">basic_ipstream</a> </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></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>Destructor. </p>
<p>Closes the stream and waits for the child to exit. </p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="ab06458ed9aea84a33489f05ec8ed0899"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab06458ed9aea84a33489f05ec8ed0899">◆ </a></span>close()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename C , typename T > </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="classredi_1_1pstream__common.html">redi::pstream_common</a>< C, T >::close </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Close the pipe. </p>
<p>Calls rdbuf-><a class="el" href="classredi_1_1pstream__common.html#ab06458ed9aea84a33489f05ec8ed0899" title="Close the pipe. ">close()</a> and sets <code>failbit</code> on error. </p>
<p class="reference">References <a class="el" href="classredi_1_1pstream__common.html#a59dd7e8a056e4e66d67f31c1ef0bfff4">redi::pstream_common< CharT, Traits >::buf_</a>, and <a class="el" href="classredi_1_1basic__pstreambuf.html#a725edcfa569034899d63312fa8d98791">redi::basic_pstreambuf< CharT, Traits >::close()</a>.</p>
</div>
</div>
<a id="acc3ad87315e0bce58714314b303b4b53"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acc3ad87315e0bce58714314b303b4b53">◆ </a></span>command()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename C , typename T > </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const std::string & <a class="el" href="classredi_1_1pstream__common.html">redi::pstream_common</a>< C, T >::command </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 class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Return the command used to initialise the stream. </p>
<dl class="section return"><dt>Returns</dt><dd>a string containing the command used to initialise the stream. </dd></dl>
<p class="reference">References <a class="el" href="classredi_1_1pstream__common.html#aa97d67284ce2fb39e26fa504d611b50c">redi::pstream_common< CharT, Traits >::command_</a>.</p>
</div>
</div>
<a id="a2505ab3e3a834b92d98b5bcb97734dfe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2505ab3e3a834b92d98b5bcb97734dfe">◆ </a></span>do_open() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename C , typename T > </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="classredi_1_1pstream__common.html">redi::pstream_common</a>< C, T >::do_open </td>
<td>(</td>
<td class="paramtype">const std::string & </td>
<td class="paramname"><em>cmd</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structredi_1_1pstreams.html#a1eae4aad88812af03a0fbb3ec13c50b7">pmode</a> </td>
<td class="paramname"><em>mode</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">inline</span><span class="mlabel">protected</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Start a process. </p>
<p>Calls <a class="el" href="classredi_1_1pstream__common.html#a5414d5a3f3d91a9483d5c9128434db26" title="Return a pointer to the stream buffer. ">rdbuf()</a>->open( <em>command</em> , <em>mode</em> ) and sets <code>failbit</code> on error.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">cmd</td><td>a string containing a shell command. </td></tr>
<tr><td class="paramname">mode</td><td>the I/O mode to use when opening the pipe. </td></tr>
</table>
</dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classredi_1_1basic__pstreambuf.html#ac91e4317d9e95b4551513a00e3d82996" title="Initialise the stream buffer with cmd. ">basic_pstreambuf::open(const std::string&, pmode)</a> </dd></dl>
<p class="reference">References <a class="el" href="classredi_1_1pstream__common.html#a59dd7e8a056e4e66d67f31c1ef0bfff4">redi::pstream_common< CharT, Traits >::buf_</a>, <a class="el" href="classredi_1_1pstream__common.html#aa97d67284ce2fb39e26fa504d611b50c">redi::pstream_common< CharT, Traits >::command_</a>, and <a class="el" href="classredi_1_1basic__pstreambuf.html#ac91e4317d9e95b4551513a00e3d82996">redi::basic_pstreambuf< CharT, Traits >::open()</a>.</p>
<p class="reference">Referenced by <a class="el" href="classredi_1_1pstream__common.html#a41a3cff7a8743a81b2d6e1e6051f3d30">redi::pstream_common< CharT, Traits >::pstream_common()</a>.</p>
</div>
</div>
<a id="a352b77fa600f7ebe0d8f1582be05ae4d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a352b77fa600f7ebe0d8f1582be05ae4d">◆ </a></span>do_open() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename C , typename T > </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="classredi_1_1pstream__common.html">redi::pstream_common</a>< C, T >::do_open </td>
<td>(</td>
<td class="paramtype">const std::string & </td>
<td class="paramname"><em>file</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="structredi_1_1pstreams.html#af902b894b095c1875e96c10129489467">argv_type</a> & </td>
<td class="paramname"><em>argv</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structredi_1_1pstreams.html#a1eae4aad88812af03a0fbb3ec13c50b7">pmode</a> </td>
<td class="paramname"><em>mode</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">inline</span><span class="mlabel">protected</span><span class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Start a process. </p>
<p>Calls <a class="el" href="classredi_1_1pstream__common.html#a5414d5a3f3d91a9483d5c9128434db26" title="Return a pointer to the stream buffer. ">rdbuf()</a>->open( <em>file</em>, <em>argv</em>, <em>mode</em> ) and sets <code>failbit</code> on error.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">file</td><td>a string containing the pathname of a program to execute. </td></tr>
<tr><td class="paramname">argv</td><td>a vector of argument strings passed to the new program. </td></tr>
<tr><td class="paramname">mode</td><td>the I/O mode to use when opening the pipe. </td></tr>
</table>
</dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classredi_1_1basic__pstreambuf.html#a2dd6e94de1a2fa0e9e4505934b246aec" title="Initialise the stream buffer with file and argv. ">basic_pstreambuf::open(const std::string&, const argv_type&, pmode)</a> </dd></dl>
<p class="reference">References <a class="el" href="classredi_1_1pstream__common.html#a59dd7e8a056e4e66d67f31c1ef0bfff4">redi::pstream_common< CharT, Traits >::buf_</a>, <a class="el" href="classredi_1_1pstream__common.html#aa97d67284ce2fb39e26fa504d611b50c">redi::pstream_common< CharT, Traits >::command_</a>, and <a class="el" href="classredi_1_1basic__pstreambuf.html#ac91e4317d9e95b4551513a00e3d82996">redi::basic_pstreambuf< CharT, Traits >::open()</a>.</p>
</div>
</div>
<a id="a7057a0f44305277d67ee86e653e486e6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7057a0f44305277d67ee86e653e486e6">◆ </a></span>err()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename CharT , typename Traits = std::char_traits<CharT>> </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classredi_1_1basic__ipstream.html">basic_ipstream</a>& <a class="el" href="classredi_1_1basic__ipstream.html">redi::basic_ipstream</a>< CharT, Traits >::err </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></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>Set streambuf to read from process' <code>stderr</code>. </p>
<dl class="section return"><dt>Returns</dt><dd><code>*this</code> </dd></dl>
</div>
</div>
<a id="a8d5ec13821e09f4bb2ab5096721551a5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8d5ec13821e09f4bb2ab5096721551a5">◆ </a></span>is_open()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename C , typename T > </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool <a class="el" href="classredi_1_1pstream__common.html">redi::pstream_common</a>< C, T >::is_open </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 class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Report whether the stream's buffer has been initialised. </p>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classredi_1_1pstream__common.html#a5414d5a3f3d91a9483d5c9128434db26" title="Return a pointer to the stream buffer. ">rdbuf()</a>-><a class="el" href="classredi_1_1pstream__common.html#a8d5ec13821e09f4bb2ab5096721551a5" title="Report whether the stream's buffer has been initialised. ">is_open()</a>. </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classredi_1_1basic__pstreambuf.html#af28fab6dc978b25c92740400512a61bc" title="Report whether the stream buffer has been initialised. ">basic_pstreambuf::is_open()</a> </dd></dl>
<p class="reference">References <a class="el" href="classredi_1_1pstream__common.html#a59dd7e8a056e4e66d67f31c1ef0bfff4">redi::pstream_common< CharT, Traits >::buf_</a>, and <a class="el" href="classredi_1_1basic__pstreambuf.html#af28fab6dc978b25c92740400512a61bc">redi::basic_pstreambuf< CharT, Traits >::is_open()</a>.</p>
</div>
</div>
<a id="aadcf86d0692356fef3bb4f1cb59e8a0d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aadcf86d0692356fef3bb4f1cb59e8a0d">◆ </a></span>open() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename CharT , typename Traits = std::char_traits<CharT>> </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="classredi_1_1basic__ipstream.html">redi::basic_ipstream</a>< CharT, Traits >::open </td>
<td>(</td>
<td class="paramtype">const std::string & </td>
<td class="paramname"><em>cmd</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structredi_1_1pstreams.html#a1eae4aad88812af03a0fbb3ec13c50b7">pmode</a> </td>
<td class="paramname"><em>mode</em> = <code><a class="el" href="structredi_1_1pstreams.html#ad3c6d53a98de4566478b1c40c101a42b">pstdout</a></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> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Start a process. </p>
<p>Calls do_open( <em>cmd</em> , <em>mode|pstdout</em> ).</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">cmd</td><td>a string containing a shell command. </td></tr>
<tr><td class="paramname">mode</td><td>the I/O mode to use when opening the pipe. </td></tr>
</table>
</dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classredi_1_1pstream__common.html#a2505ab3e3a834b92d98b5bcb97734dfe" title="Start a process. ">do_open(const std::string&, pmode)</a> </dd></dl>
</div>
</div>
<a id="a99a26c32db5009fe0be34efb466a9eea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a99a26c32db5009fe0be34efb466a9eea">◆ </a></span>open() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename CharT , typename Traits = std::char_traits<CharT>> </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="classredi_1_1basic__ipstream.html">redi::basic_ipstream</a>< CharT, Traits >::open </td>
<td>(</td>
<td class="paramtype">const std::string & </td>
<td class="paramname"><em>file</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="structredi_1_1pstreams.html#af902b894b095c1875e96c10129489467">argv_type</a> & </td>
<td class="paramname"><em>argv</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structredi_1_1pstreams.html#a1eae4aad88812af03a0fbb3ec13c50b7">pmode</a> </td>
<td class="paramname"><em>mode</em> = <code><a class="el" href="structredi_1_1pstreams.html#ad3c6d53a98de4566478b1c40c101a42b">pstdout</a></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> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Start a process. </p>
<p>Calls do_open( <em>file</em> , <em>argv</em> , <em>mode|pstdout</em> ).</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">file</td><td>a string containing the pathname of a program to execute. </td></tr>
<tr><td class="paramname">argv</td><td>a vector of argument strings passed to the new program. </td></tr>
<tr><td class="paramname">mode</td><td>the I/O mode to use when opening the pipe. </td></tr>
</table>
</dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classredi_1_1pstream__common.html#a352b77fa600f7ebe0d8f1582be05ae4d" title="Start a process. ">do_open(const std::string&, const argv_type&, pmode)</a> </dd></dl>
</div>
</div>
<a id="a421171ef24c9f6b68b023e5ab30d9581"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a421171ef24c9f6b68b023e5ab30d9581">◆ </a></span>out()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename CharT , typename Traits = std::char_traits<CharT>> </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classredi_1_1basic__ipstream.html">basic_ipstream</a>& <a class="el" href="classredi_1_1basic__ipstream.html">redi::basic_ipstream</a>< CharT, Traits >::out </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></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>Set streambuf to read from process' <code>stdout</code>. </p>
<dl class="section return"><dt>Returns</dt><dd><code>*this</code> </dd></dl>
</div>
</div>
<a id="a5414d5a3f3d91a9483d5c9128434db26"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5414d5a3f3d91a9483d5c9128434db26">◆ </a></span>rdbuf()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename C , typename T > </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classredi_1_1pstream__common.html">pstream_common</a>< C, T >::<a class="el" href="classredi_1_1basic__pstreambuf.html">streambuf_type</a> * <a class="el" href="classredi_1_1pstream__common.html">redi::pstream_common</a>< C, T >::rdbuf </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 class="mlabel">inherited</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Return a pointer to the stream buffer. </p>
<dl class="section return"><dt>Returns</dt><dd>a pointer to the private stream buffer member. </dd></dl>
<p class="reference">References <a class="el" href="classredi_1_1pstream__common.html#a59dd7e8a056e4e66d67f31c1ef0bfff4">redi::pstream_common< CharT, Traits >::buf_</a>, <a class="el" href="structredi_1_1pstreams.html#a423b8ad263d442ba726b5f8e5812b7ef">redi::pstreams::pstderr</a>, <a class="el" href="structredi_1_1pstreams.html#a7a976ce992db857f86a0cc3352e42d3a">redi::pstreams::pstdin</a>, and <a class="el" href="structredi_1_1pstreams.html#ad3c6d53a98de4566478b1c40c101a42b">redi::pstreams::pstdout</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="pstream_8h_source.html">pstream.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
|