MEPP2 Project
Namespaces | Functions
FileUtilities.hpp File Reference
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <vector>
#include <algorithm>
#include <iterator>
#include <cctype>
#include <boost/filesystem.hpp>
Include dependency graph for FileUtilities.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 FEVV
 Interfaces for plugins These interfaces will be used for different plugins.
 
 FEVV::FileUtils
 

Functions

std::string FEVV::FileUtils::get_file_extension (const std::string &file_name)
 
std::string FEVV::FileUtils::get_file_extension (const char *file_name)
 
bool FEVV::FileUtils::has_extension (const std::string &file_name)
 
bool FEVV::FileUtils::has_extension (const char *file_name)
 
bool FEVV::FileUtils::has_extension (const std::string &file_name, const std::string &ext_name, bool case_sensitive=false)
 
bool FEVV::FileUtils::has_extension (const char *file_name, const char *ext_name, bool case_sensitive=false)
 
bool FEVV::FileUtils::has_extension (const std::string &file_name, const std::vector< std::string > &ext_names, bool case_sensitive=false)
 
std::string FEVV::FileUtils::get_file_name (const std::string &file_name)
 
std::string FEVV::FileUtils::get_file_name (const char *file_name)
 
std::string FEVV::FileUtils::get_file_full_name (const std::string &file_name)
 
unsigned int FEVV::FileUtils::count_file_lines (const std::string &file_name)
 
unsigned int FEVV::FileUtils::count_file_lines (const char *file_name)
 
std::string FEVV::FileUtils::get_parent_directory (const std::string &file_name)
 
std::ifstream & FEVV::FileUtils::safe_getline (std::ifstream &input, std::string &str)
 
bool FEVV::FileUtils::getline_skip_comment (std::istream &input, std::string &line)
 
bool FEVV::FileUtils::getline_skip_comment (std::istream &input, std::string &line, std::istringstream &line_ss)
 
void FEVV::FileUtils::copy_file (const std::string &from, const std::string &to)
 
void FEVV::FileUtils::create_dir (const std::string &dirname)
 
void FEVV::FileUtils::remove_dir (const std::string &dirname)
 
std::string FEVV::FileUtils::get_wdir (void)
 
void FEVV::FileUtils::change_wdir (const std::string &dirname)
 
std::string FEVV::FileUtils::load_file (const std::string &file_name)