| Tanl Linguistic Pipeline |
Public Types | |
| typedef pbase_type::pmode | pmode |
| Type used to specify how to connect to the process. | |
| typedef pbase_type::argv_type | argv_type |
| Type used to hold the arguments for a command. | |
Public Member Functions | |
| basic_opstream () | |
| Default constructor, creates an uninitialised stream. | |
| basic_opstream (const std::string &command, pmode mode=pstdin) | |
| Constructor that initialises the stream by starting a process. | |
| basic_opstream (const std::string &file, const argv_type &argv, pmode mode=pstdin) | |
| Constructor that initialises the stream by starting a process. | |
| ~basic_opstream () | |
| Destructor. | |
| void | open (const std::string &command, pmode mode=pstdin) |
| Start a process. | |
| void | open (const std::string &file, const argv_type &argv, pmode mode=pstdin) |
| Start a process. | |
| IXE::io::basic_opstream< CharT, Traits >::basic_opstream | ( | const std::string & | command, | |
| pmode | mode = pstdin | |||
| ) | [inline] |
Constructor that initialises the stream by starting a process.
Initialises the stream buffer by calling do_open() with the supplied arguments.
| command | a string containing a shell command. | |
| mode | the I/O mode to use when opening the pipe. |
| IXE::io::basic_opstream< CharT, Traits >::basic_opstream | ( | const std::string & | file, | |
| const argv_type & | argv, | |||
| pmode | mode = pstdin | |||
| ) | [inline] |
Constructor that initialises the stream by starting a process.
Initialises the stream buffer by calling do_open() with the supplied arguments.
| file | a string containing the pathname of a program to execute. | |
| argv | a vector of argument strings passed to the new program. | |
| mode | the I/O mode to use when opening the pipe. |
| IXE::io::basic_opstream< CharT, Traits >::~basic_opstream | ( | ) | [inline] |
Destructor.
Closes the stream and waits for the child to exit.
| void IXE::io::basic_opstream< CharT, Traits >::open | ( | const std::string & | file, | |
| const argv_type & | argv, | |||
| pmode | mode = pstdin | |||
| ) | [inline] |
Start a process.
Calls do_open( file , argv , mode|pstdin ).
| file | a string containing the pathname of a program to execute. | |
| argv | a vector of argument strings passed to the new program. | |
| mode | the I/O mode to use when opening the pipe. |
References IXE::io::pstream_common< CharT, Traits >::do_open(), and IXE::io::pstreams::pstdin.
| void IXE::io::basic_opstream< CharT, Traits >::open | ( | const std::string & | command, | |
| pmode | mode = pstdin | |||
| ) | [inline] |
Start a process.
Calls do_open( command , mode|pstdin ).
| command | a string containing a shell command. | |
| mode | the I/O mode to use when opening the pipe. |
References IXE::io::pstream_common< CharT, Traits >::do_open(), and IXE::io::pstreams::pstdin.