I/O functions declarations.
More...
#include <string>
#include <istream>
Go to the source code of this file.
|
std::string | readAllStreamContent (std::istream &stream) |
| Reads all content from the selected stream into a string. More...
|
|
void | printErrorMessage (const char *errorMessage) |
| Prints selected error message to standard error. More...
|
|
void | printErrorMessage (const std::string &errorMessage) |
| Prints selected error message to standard error. More...
|
|
void | printHelp (const std::string &progName, std::ostream &stream) |
| Prints program help to the selected stream. More...
|
|
I/O functions declarations.
Encoding: UTF-8 Project: Serial-TCP/IP bridge
- Author
- Petr Zemek, xzeme.nosp@m.k02@.nosp@m.stud..nosp@m.fit..nosp@m.vutbr.nosp@m..cz
- Date
- 2009
void printErrorMessage |
( |
const char * |
errorMessage | ) |
|
Prints selected error message to standard error.
- Parameters
-
errorMessage | Error string that will be printed. |
void printErrorMessage |
( |
const std::string & |
errorMessage | ) |
|
Prints selected error message to standard error.
- Parameters
-
errorMessage | Error string that will be printed. |
void printHelp |
( |
const std::string & |
progName, |
|
|
std::ostream & |
stream |
|
) |
| |
Prints program help to the selected stream.
- Parameters
-
progName | Program name. |
stream | Stream into which the help text will be sent. |
std::string readAllStreamContent |
( |
std::istream & |
stream | ) |
|
Reads all content from the selected stream into a string.
- Parameters
-
stream | Stream from which the data will be read. |
- Returns
- All content read from the selected file.