inlib
1.2.0
|
#include <string>
#include <vector>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include "file_reader"
Go to the source code of this file.
Classes | |
class | inlib::FILE_reader |
Namespaces | |
namespace | inlib |
manipulations that induces other includes : /////////// | |
namespace | inlib::file |
Defines | |
#define | inlib_file |
Enumerations | |
enum | inlib::file::chmod_who { inlib::file::ch_user, inlib::file::ch_group, inlib::file::ch_other, inlib::file::ch_all } |
by using ::system(<file system>) ///////////////////////////////////////// More... | |
enum | inlib::file::chmod_operation { inlib::file::ch_add, inlib::file::ch_sub } |
enum | inlib::file::chmod_what { inlib::file::ch_read, inlib::file::ch_write, inlib::file::ch_exec } |
Functions | |
bool | inlib::file::exists (const std::string &a_string) |
bool | inlib::file::size (const std::string &a_file, long &a_size) |
bool | inlib::file::is_empty (const std::string &a_file) |
bool | inlib::file::write (const std::string &a_file, const std::string &a_string) |
bool | inlib::file::write (const std::string &a_file, const std::vector< std::string > &a_text) |
bool | inlib::file::read_buff (FILE *a_file, char *a_buff, unsigned int a_lbuf, size_t &a_length) |
bool | inlib::file::read_cstring (FILE *a_file, char *a_buff, unsigned int a_lbuf, size_t &a_length) |
bool | inlib::file::read (const std::string &a_file, std::vector< std::string > &a_text) |
bool | inlib::file::read_num (const std::string &a_file, std::vector< std::string >::size_type a_num, std::vector< std::string > &a_text) |
bool | inlib::file::read_bytes (const std::string &a_file, char *&a_buffer, long &a_length) |
bool | inlib::file::write_bytes (const std::string &a_file, const char *a_buffer, size_t a_length) |
bool | inlib::file::signature (const std::string &a_file, unsigned char a_head[], unsigned int a_num=4) |
bool | inlib::file::is_gzip (const std::string &a_file, bool &a_is) |
bool | inlib::file::is_jpeg (const std::string &a_file, bool &a_is) |
bool | inlib::file::is_png (const std::string &a_file, bool &a_is) |
bool | inlib::file::is_root (const std::string &a_file, bool &a_is) |
bool | inlib::file::is_iv (const std::string &a_file, bool &a_is) |
bool | inlib::file::is_aida (const std::string &a_file, bool &a_is) |
bool | inlib::file::is_exsg (const std::string &a_file, bool &a_is) |
bool | inlib::file::found (const std::string &a_file, const std::string &a_what, std::vector< std::string > &a_found) |
bool | inlib::file::std_remove (const std::string &a_file) |
bool | inlib::file::std_remove (std::vector< std::string > &a_files) |
bool | inlib::file::std_rename (const std::string &a_from, const std::string &a_to) |
bool | inlib::file::chmod (const std::string &a_file, chmod_who a_who, chmod_operation a_op, chmod_what a_what) |
std::string | inlib::file::quote (const std::string &a_path) |
bool | inlib::file::mv (const std::string &a_from, const std::string &a_to) |
bool | inlib::file::cp (const std::string &a_from, const std::string &a_to) |
bool | inlib::file::rm (const std::string &a_file) |