libapt-pkg-dev  v0.9.7.5ubuntu5.4
Debian+Ubuntu APT Package Management
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
fileutl.h File Reference
#include <apt-pkg/macros.h>
#include <apt-pkg/aptconfiguration.h>
#include <string>
#include <vector>
#include <zlib.h>
Include dependency graph for fileutl.h:
This graph shows which files directly or indirectly include this file:

Classes

class  FileFd
 

Macros

#define APT_HAS_GZIP   1
 

Functions

bool CopyFile (FileFd &From, FileFd &To)
 
bool CreateAPTDirectoryIfNeeded (std::string const &Parent, std::string const &Path)
 Ensure the existence of the given Path. More...
 
bool CreateDirectory (std::string const &Parent, std::string const &Path)
 
bool DirectoryExists (std::string const &Path) __attrib_const
 
pid_t ExecFork ()
 
bool ExecWait (pid_t Pid, const char *Name, bool Reap=false)
 
bool FileExists (std::string File)
 
std::string flCombine (std::string Dir, std::string File)
 
std::string flExtension (std::string File)
 
std::string flNoLink (std::string File)
 
std::string flNotDir (std::string File)
 
std::string flNotFile (std::string File)
 
std::vector< std::string > GetListOfFilesInDir (std::string const &Dir, std::string const &Ext, bool const &SortList, bool const &AllowNoExt=false)
 
std::vector< std::string > GetListOfFilesInDir (std::string const &Dir, std::vector< std::string > const &Ext, bool const &SortList)
 
std::vector< std::string > GetListOfFilesInDir (std::string const &Dir, bool SortList)
 
int GetLock (std::string File, bool Errors=true)
 
time_t GetModificationTime (std::string const &Path)
 
bool RealFileExists (std::string File)
 
bool RunScripts (const char *Cnf)
 
std::string SafeGetCWD ()
 
void SetCloseExec (int Fd, bool Close)
 
void SetNonBlock (int Fd, bool Block)
 
bool StartsWithGPGClearTextSignature (std::string const &FileName)
 
bool WaitFd (int Fd, bool write=false, unsigned long timeout=0)
 

Macro Definition Documentation

#define APT_HAS_GZIP   1

Function Documentation

bool CopyFile ( FileFd From,
FileFd To 
)
bool CreateAPTDirectoryIfNeeded ( std::string const &  Parent,
std::string const &  Path 
)

Ensure the existence of the given Path.

Parameters
Parentdirectory of the Path directory - a trailing /apt/ will be removed before CreateDirectory call.
Pathwhich should exist after (successful) call
bool CreateDirectory ( std::string const &  Parent,
std::string const &  Path 
)
bool DirectoryExists ( std::string const &  Path) const
pid_t ExecFork ( )
bool ExecWait ( pid_t  Pid,
const char *  Name,
bool  Reap = false 
)
bool FileExists ( std::string  File)
std::string flCombine ( std::string  Dir,
std::string  File 
)
std::string flExtension ( std::string  File)
std::string flNoLink ( std::string  File)
std::string flNotDir ( std::string  File)
std::string flNotFile ( std::string  File)
std::vector<std::string> GetListOfFilesInDir ( std::string const &  Dir,
std::string const &  Ext,
bool const &  SortList,
bool const &  AllowNoExt = false 
)
std::vector<std::string> GetListOfFilesInDir ( std::string const &  Dir,
std::vector< std::string > const &  Ext,
bool const &  SortList 
)
std::vector<std::string> GetListOfFilesInDir ( std::string const &  Dir,
bool  SortList 
)
int GetLock ( std::string  File,
bool  Errors = true 
)
time_t GetModificationTime ( std::string const &  Path)
bool RealFileExists ( std::string  File)
bool RunScripts ( const char *  Cnf)
std::string SafeGetCWD ( )
void SetCloseExec ( int  Fd,
bool  Close 
)
void SetNonBlock ( int  Fd,
bool  Block 
)
bool StartsWithGPGClearTextSignature ( std::string const &  FileName)
bool WaitFd ( int  Fd,
bool  write = false,
unsigned long  timeout = 0 
)