Serial-TCP/IPbridge  1.0
io.h
Go to the documentation of this file.
1 
12 #ifndef IO_H
13 #define IO_H
14 
15 #include <string>
16 #include <istream>
17 
25 std::string readAllStreamContent(std::istream &stream);
26 
32 void printErrorMessage(const char *errorMessage);
33 
39 void printErrorMessage(const std::string &errorMessage);
40 
47 void printHelp(const std::string &progName, std::ostream &stream);
48 
49 #endif // #ifndef IO_H
50 
51 // End of file io.h
void printErrorMessage(const char *errorMessage)
Prints selected error message to standard error.
void printHelp(const std::string &progName, std::ostream &stream)
Prints program help to the selected stream.
std::string readAllStreamContent(std::istream &stream)
Reads all content from the selected stream into a string.