Classes | Namespaces | Typedefs | Enumerations | Functions
file.hpp File Reference
#include <lexy/_detail/lazy_init.hpp>
#include <lexy/_detail/std.hpp>
#include <lexy/input/base.hpp>
#include <lexy/input/buffer.hpp>
Include dependency graph for file.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  lexy::_read_file_user_data< Encoding, Endian, MemoryResource >
 
class  lexy::read_file_result< Encoding, MemoryResource >
 

Namespaces

 lexy
 
 lexy::_detail
 

Typedefs

using lexy::_detail::file_callback = void(*)(void *user_data, const char *memory, std::size_t size)
 

Enumerations

enum  lexy::file_error { lexy::file_error::_success, lexy::file_error::os_error, lexy::file_error::file_not_found, lexy::file_error::permission_denied }
 Errors that might occur while reading the file. More...
 

Functions

file_error lexy::_detail::read_file (const char *path, file_callback cb, void *user_data)
 
template<typename Encoding = default_encoding, encoding_endianness Endian = encoding_endianness::bom, typename MemoryResource = void>
auto lexy::read_file (const char *path, MemoryResource *resource=_detail::get_memory_resource< MemoryResource >()) -> read_file_result< Encoding, MemoryResource >
 Reads the file at the specified path into a buffer. More...
 
file_error lexy::_detail::read_stdin (file_callback cb, void *user_data)
 
template<typename Encoding = default_encoding, encoding_endianness Endian = encoding_endianness::bom, typename MemoryResource = void>
auto lexy::read_stdin (MemoryResource *resource=_detail::get_memory_resource< MemoryResource >()) -> read_file_result< Encoding, MemoryResource >
 Reads stdin into a buffer. More...
 


behaviortree_cpp_v4
Author(s): Davide Faconti
autogenerated on Fri Jun 28 2024 02:20:08