Eclipse SUMO - Simulation of Urban MObility
strict_fstream Namespace Reference

Namespaces

 detail
 

Data Structures

class  Exception
 Exception class thrown by failed operations. More...
 
class  fstream
 
class  ifstream
 
class  ofstream
 

Functions

static std::string strerror ()
 

Detailed Description

This namespace defines wrappers for std::ifstream, std::ofstream, and std::fstream objects. The wrappers perform the following steps:

  • check the open modes make sense
  • check that the call to open() is successful
  • (for input streams) check that the opened file is peek-able
  • turn on the badbit in the exception mask

Function Documentation

◆ strerror()

static std::string strict_fstream::strerror ( )
static

Overload of error-reporting function, to enable use with VS. Ref: http://stackoverflow.com/a/901316/717706

Definition at line 29 of file strict_fstream.hpp.

Referenced by tcpip::Socket::BailOnSocketError(), strict_fstream::detail::static_method_holder::check_open(), strict_fstream::detail::static_method_holder::check_peek(), OptionsCont::isUsableFileList(), and OutputDevice_File::OutputDevice_File().

Here is the caller graph for this function: