omw  0.2.1-beta
Classes | Typedefs | Enumerations | Functions
I/O Library

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::stringomw::preview::getSerialPortList (bool onlyCOMx=true)
 
void omw::preview::sortSerialPortList (std::vector< omw::string > &ports)
 
void omw::preview::sortSerialPortList (std::vector< std::string > &ports)
 

Detailed Description

Typedef Documentation

◆ TxtFileInterface

#include <omw/io/file.h>

Text file interface.

Function Documentation

◆ size_to_streamsize()

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)

◆ streampos_to_size()

size_t omw::io::streampos_to_size ( const std::streampos &  val)

Exceptions

◆ streampos_to_streamoff()

omw::io::streampos_to_streamoff ( const std::streampos &  val)
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.