exprtk::rtl::io::file::details::file_descriptor Struct Reference

#include <exprtk.hpp>

Public Member Functions

 file_descriptor (const std::string &fname, const std::string &access)
 
bool open ()
 
template<typename Stream , typename Ptr >
void close (Ptr &p)
 
bool close ()
 
template<typename View >
bool write (const View &view, const std::size_t amount, const std::size_t offset=0)
 
template<typename View >
bool read (View &view, const std::size_t amount, const std::size_t offset=0)
 
bool getline (std::string &s)
 
bool eof () const
 
file_mode get_file_mode (const std::string &access) const
 

Public Attributes

void * stream_ptr
 
file_mode mode
 
std::string file_name
 

Constructor & Destructor Documentation

◆ file_descriptor()

exprtk::rtl::io::file::details::file_descriptor::file_descriptor ( const std::string fname,
const std::string access 
)
inline

Member Function Documentation

◆ close() [1/2]

bool exprtk::rtl::io::file::details::file_descriptor::close ( )
inline

◆ close() [2/2]

template<typename Stream , typename Ptr >
void exprtk::rtl::io::file::details::file_descriptor::close ( Ptr &  p)
inline

◆ eof()

◆ get_file_mode()

file_mode exprtk::rtl::io::file::details::file_descriptor::get_file_mode ( const std::string access) const
inline

◆ getline()

bool exprtk::rtl::io::file::details::file_descriptor::getline ( std::string s)
inline

◆ open()

◆ read()

template<typename View >
bool exprtk::rtl::io::file::details::file_descriptor::read ( View &  view,
const std::size_t  amount,
const std::size_t  offset = 0 
)
inline

◆ write()

template<typename View >
bool exprtk::rtl::io::file::details::file_descriptor::write ( const View &  view,
const std::size_t  amount,
const std::size_t  offset = 0 
)
inline

Member Data Documentation

◆ file_name

std::string exprtk::rtl::io::file::details::file_descriptor::file_name

Referenced by open().

◆ mode

file_mode exprtk::rtl::io::file::details::file_descriptor::mode

Referenced by close(), eof(), getline(), open(), read(), and write().

◆ stream_ptr

void* exprtk::rtl::io::file::details::file_descriptor::stream_ptr

Referenced by close(), eof(), getline(), open(), read(), and write().


The documentation for this struct was generated from the following file: