libjmmcg
release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
|
#include <file.hpp>
Inherits basic_file_type.
Public Types | |
typedef basic_file_type | file_type |
typedef crt_exception< API_, Mdl_ > | exception_type |
Public Member Functions | |
file (const tstring &, const std::ios_base::openmode, const bool=true) | |
file (file const &)=delete | |
virtual | ~file () |
file & | operator= (const file &) |
virtual const bool | operator== (const file &) const noexcept(true) |
const tstring & | name (void) const noexcept(true) |
This templating is done to generalise this class. Why? There are ASCII mode files and binary ones. ASCII mode translates the CR/LF combinations. Binary does not. Also it allows this class to manage Unicode character sets. (One that use double bytes for the character set.)
typedef crt_exception<API_,Mdl_> jmmcg::LIBJMMCG_VER_NAMESPACE::file< basic_file_type, API_, Mdl_ >::exception_type |
typedef basic_file_type jmmcg::LIBJMMCG_VER_NAMESPACE::file< basic_file_type, API_, Mdl_ >::file_type |
|
inline |
|
delete |
|
inlinevirtual |
|
inlinenoexcept |
|
inline |
|
inlinevirtualnoexcept |