omw
0.2.1-beta
|
Classes | |
class | omw::io::FileInterface_Base |
class | omw::io::BinFileInterface |
class | omw::io::SerialPort |
Typedefs | |
using | omw::io::TxtFileInterface = omw::io::FileInterface_Base |
Enumerations | |
enum | LINE_END { LE_LF = 0, LE_CR, LE_CRLF, LE_AUTO = LE_CRLF } |
Functions | |
std::streamsize | omw::io::size_to_streamsize (size_t val) |
size_t | omw::io::streampos_to_size (const std::streampos &val) |
std::streamoff | omw::io::streampos_to_streamoff (const std::streampos &val) |
omw::vector< omw::string > | omw::preview::getSerialPortList (bool onlyCOMx=true) |
void | omw::preview::sortSerialPortList (std::vector< omw::string > &ports) |
void | omw::preview::sortSerialPortList (std::vector< std::string > &ports) |
using omw::io::TxtFileInterface = typedef omw::io::FileInterface_Base |
#include <omw/io/file.h>
Text file interface.
std::streamsize omw::io::size_to_streamsize | ( | size_t | val | ) |
Exceptions
std::out_of_range
if the value is too big to be represented by std::streamsize
(usually never occures, because std::streamsize
is defined as long long
in most implementations) size_t omw::io::streampos_to_size | ( | const std::streampos & | val | ) |
Exceptions
std::invalid_argument
if the value is negativestd::out_of_range
if the value is too big to be represented by size_t
|
inline |
The to std::streamoff
conversion operator of the std::streampos
class may be explicit. This function is a wrapper for the static cast from std::streampos
to std::streamoff
.