40 #include "../my_config.h" 62 #define TOOLS_SI_SUFFIX 1000 63 #define TOOLS_BIN_SUFFIX 1024 173 extern void tools_open_pipes(user_interaction & dialog,
const std::string &input,
const std::string & output,
174 tuyau *&in, tuyau *&out);
251 extern void tools_system(user_interaction & dialog,
const std::vector<std::string> & argvector);
260 extern void tools_system_with_pipe(user_interaction & dialog,
const std::string & dar_cmd,
const std::vector<std::string> & argvpipe);
280 const std::vector<std::string> & x);
287 std::vector<std::string> operator + (std::vector<std::string> a, std::vector<std::string> b);
294 extern bool tools_is_member(
const std::string & val,
const std::vector<std::string> & liste);
344 template <
class T> std::vector<T>
operator +=(std::vector<T> & a,
const std::vector<T> & b)
367 const path & loc, std::string & base,
const std::string & extension);
387 extern bool tools_look_for(
const char *argument, S_I argc,
char *
const argv[]);
417 extern void tools_to_upper(
const std::string & r, std::string & uppered);
420 extern void tools_to_wupper(std::wstring & r);
457 extern std::string
tools_printf(
const char *format, ...);
469 extern std::string
tools_vprintf(
const char *format, va_list ap);
503 const std::string & basename,
504 const std::string & extension,
506 bool allow_overwriting,
507 bool warn_overwriting,
597 const std::map<char, std::string> & corres);
612 const std::string &
path,
613 const std::string & basename,
614 const std::string & num,
615 const std::string & padded_num,
616 const std::string & ext,
617 const std::string & context);
625 const std::string & cmd_line);
639 const std::string & hook,
640 const std::string & path,
641 const std::string & basename,
642 const std::string & num,
643 const std::string & padded_num,
644 const std::string & ext,
645 const std::string & context);
654 const std::string & relative_part);
694 extern void tools_set_ownership(S_I fd,
const std::string & slice_user,
const std::string & slice_group);
702 extern void tools_memxor(
void *dest,
const void *src, U_I n);
745 throw Erange(
"tools_number_decoupe_in_big_endian",
"base must be strictly positive");
749 ret.push_back(number % base);
791 extern std::wstring tools_string_to_wstring(
const std::string & val);
795 extern std::string tools_wstring_to_string(
const std::wstring & val);
bool furtive_read()
returns whether libdar can support furtive read mode when run by privileged user
are defined here basic integer types that tend to be portable
bool largefile()
returns whether largefile (>2GiB) support has been activated at compilation time
class generic_file is defined here as well as class fichierthe generic_file interface is widely used ...
bool ea()
returns whether EA support has been activated at compilation time
This is a pure virtual class that is used by libdar when interaction with the user is required...
bool libz()
returns whether libdar is dependent on libz and if so has gzip compression/decompression available ...
here is the definition of the path classthe path class handle path and provide several operation on t...
defines the implementation of pipe under the generic_file interface.mainly used between zapette and s...
switch module to limitint (32 ou 64 bits integers) or infinint
bool thread_safe()
returns whether the current libdar is thread safe
exception used to signal range error
U_I bits()
returns the internal integer type used
this is the interface class from which all other data transfer classes inherit
bool nodump()
returns whether nodump flag support has been activated at compilation time
List of Generic Type Length Value data structures.
the arbitrary large positive integer class
bool libbz2()
returns whether libdar is dependent on libbz2 and if so has bzip2 compression/decompression available...
libdar namespace encapsulate all libdar symbols
the class path is here to manipulate paths in the Unix notation: using'/'