Serial-TCP/IPbridge  1.0
Functions
io.h File Reference

I/O functions declarations. More...

#include <string>
#include <istream>

Go to the source code of this file.

Functions

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...
 

Detailed Description

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

Function Documentation

void printErrorMessage ( const char *  errorMessage)

Prints selected error message to standard error.

Parameters
errorMessageError string that will be printed.
void printErrorMessage ( const std::string &  errorMessage)

Prints selected error message to standard error.

Parameters
errorMessageError string that will be printed.
void printHelp ( const std::string &  progName,
std::ostream &  stream 
)

Prints program help to the selected stream.

Parameters
progNameProgram name.
streamStream 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
streamStream from which the data will be read.
Returns
All content read from the selected file.