#include <io.hpp>
|
virtual | ~Base ()=default |
|
std::string | get_abs_path () const |
| Get the abs path object in a safe manner, such as that the access does not occur on null pointers. Use this function because it also converts slashes between paths. More...
|
|
virtual void | open () |
|
virtual void | close () |
|
virtual void | read (void *, size_t) |
|
virtual void | write (const void *, size_t) |
|
virtual void | seek (Eng3D::IO::SeekType, int) |
|
virtual size_t | get_size (void) const |
|
std::string | read_all (void) |
| Read the entire file into a string. More...
|
|
Definition at line 77 of file io.hpp.
◆ ~Base()
virtual Eng3D::IO::Asset::Base::~Base |
( |
| ) |
|
|
virtualdefault |
◆ close()
virtual void Eng3D::IO::Asset::Base::close |
( |
| ) |
|
|
inlinevirtual |
◆ get_abs_path()
std::string Eng3D::IO::Asset::Base::get_abs_path |
( |
| ) |
const |
Get the abs path object in a safe manner, such as that the access does not occur on null pointers. Use this function because it also converts slashes between paths.
- Parameters
-
- Returns
- std::string
Definition at line 38 of file io.cpp.
◆ get_size()
virtual size_t Eng3D::IO::Asset::Base::get_size |
( |
void |
| ) |
const |
|
inlinevirtual |
◆ open()
virtual void Eng3D::IO::Asset::Base::open |
( |
| ) |
|
|
inlinevirtual |
◆ read()
virtual void Eng3D::IO::Asset::Base::read |
( |
void * |
, |
|
|
size_t |
|
|
) |
| |
|
inlinevirtual |
◆ read_all()
std::string Eng3D::IO::Asset::Base::read_all |
( |
void |
| ) |
|
|
inline |
Read the entire file into a string.
- Returns
- std::string The file contents
Definition at line 90 of file io.hpp.
◆ seek()
◆ write()
virtual void Eng3D::IO::Asset::Base::write |
( |
const void * |
, |
|
|
size_t |
|
|
) |
| |
|
inlinevirtual |
◆ abs_path
std::string Eng3D::IO::Asset::Base::abs_path |
◆ path
std::string Eng3D::IO::Asset::Base::path |
The documentation for this struct was generated from the following files: