Gamgee
You miserable little maggot. I'll stove your head in!
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Namespaces | Functions
file_utils.h File Reference
#include <memory>
#include <fstream>
#include <string>

Go to the source code of this file.

Classes

struct  gamgee::utils::IFStreamDeleter
 a functor object to delete an ifstream More...
 

Namespaces

 gamgee
 
 gamgee::utils
 utility functions for the gamgee library
 

Functions

std::shared_ptr< std::ifstream > gamgee::utils::make_shared_ifstream (std::ifstream *ifstream_ptr)
 wraps a pre-allocated ifstream in a shared_ptr with correct deleter More...
 
std::shared_ptr< std::ifstream > gamgee::utils::make_shared_ifstream (std::string filename)
 wraps an input file in a shared_ptr to an ifstream with correct deleter More...