Compounds | |
| class | BinaryFile |
| a binary file (with simple compression). More... | |
| class | BinaryStoreable |
| base class for types knowing how to be (re)stored. More... | |
| class | Directory |
| class containing all or some files of a directory. More... | |
| class | InputFile |
| read textfiles line per line and provide error raising. More... | |
Typedefs | |
| typedef std::map< std::string, Directory > | Directories |
| Contains several Directory's. More... | |
| typedef bool(* | predicate )(const std::string &dirname, const char *filename, const struct stat &filestat) |
| Predicate for files/directories. More... | |
Enumerations | |
| enum | BinaryFileType { BF_INPUT, BF_OUTPUT } |
| @brief type of BinaryFile (input or output). More... | |
Functions | |
| template<class T> void | put_binary (const T &t, BinaryFile &file) |
| write any type to a binary output file. More... | |
| template<class T> void | get_binary (T &t, BinaryFile &file) |
| read any type from a binary input file. More... | |
| template<> void | put_binary< std::string > (const std::string &s, BinaryFile &file) |
| template<> void | get_binary< std::string > (std::string &s, BinaryFile &file) |
| string | catDF (const string &directory, const string &filename) |
| void | scanDir_internal (Directories &dirs, const string &rootdir, bool recurse, bool follow_links, predicate takeFile, predicate recurseDirectory, ostream *display, set< string > &visited_directories) |
| void | scanDir (Directories &dirs, const string &rootdir, bool recurse, bool follow_links, predicate takeFile, predicate recurseDirectory, ostream *display) |
| void | scanDir (Directories &dirs, const string &rootdir, bool recurse, bool follow_links, predicate takeFile, ostream *display) |
| void | saveDirectories (const Directories &dirs, BinaryFile &out) |
| save directory container into a file. More... | |
| void | loadDirectories (Directories &dirs, BinaryFile &in) |
| load directory container from a file. More... | |
| string | canonicalize (const string &filename, bool to_win32) |
| size_t | lastPathSeperator (const string &filename) |
| string | extractDirectory (const string &fullpath) |
| string | extractFilename (const string &fullpath) |
| void | backslashes2slashes (string &filename) |
| converts all backslashes to slashes. More... | |
| bool | isLink (const string &file, string &target) |
| std::string | catDF (const std::string &directory, const std::string &filename) |
| concatenate directory with filename. More... | |
| void | scanDir (Directories &dirs, const std::string &rootdir, bool recurse, bool follow_links, predicate takeFile, predicate recurseDirectory, std::ostream *display) |
| scan content of directories (recursion controllable). More... | |
| void | scanDir (Directories &dirs, const std::string &rootdir, bool recurse, bool follow_links, predicate takeFile, std::ostream *display) |
| scan content of directories. More... | |
| std::string | canonicalize (const std::string &filename, bool to_win32=(DIR_SEPARATOR=='\\')) |
| create canonical filename. More... | |
| bool | is_canonical (const std::string &filename) |
| test if filename is canonical. More... | |
| std::string | extractDirectory (const std::string &fullpath) |
| extract directory part from filename. More... | |
| std::string | extractFilename (const std::string &fullpath) |
| remove directory part from a filename. More... | |
| bool | isLink (const std::string &file, std::string &target) |
| test if a file is a windows link (*.lnk). More... | |
Variables | |
| char | DIR_SEPARATOR = '/' |
| contains the separator used in full pathnames. More... | |
|
|
Contains several Directory's. Normally Directories should be initialized by using scanDir() Definition at line 119 of file Directory.h. Referenced by loadDirectories(), saveDirectories(), scanDir(), and scanDir_internal(). |
|
|
Predicate for files/directories.
Definition at line 122 of file Directory.h. Referenced by scanDir(), and scanDir_internal(). |
|
|
@brief type of BinaryFile (input or output).
Definition at line 35 of file BinFile.h. Referenced by BinaryFile::BinaryFile(). |
|
||||||||||||
|
write any type to a binary output file.
Definition at line 240 of file BinFile.h. Referenced by put_binary(), and Directory::save(). |
|
||||||||||||
|
read any type from a binary input file.
Definition at line 248 of file BinFile.h. Referenced by get_binary(), and Directory::load(). |
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
Definition at line 125 of file Directory.cpp. Referenced by Directory::fullPath(), and scanDir_internal(). |
|
||||||||||||||||||||||||||||||||||||
|
Definition at line 132 of file Directory.cpp. Referenced by scanDir(). |
|
||||||||||||||||||||||||||||||||
|
Definition at line 200 of file Directory.cpp. Referenced by scanDir(), and scanDir_internal(). |
|
||||||||||||||||||||||||||||
|
Definition at line 222 of file Directory.cpp. |
|
||||||||||||
|
save directory container into a file.
Definition at line 234 of file Directory.cpp. |
|
||||||||||||
|
load directory container from a file.
Definition at line 250 of file Directory.cpp. |
|
||||||||||||
|
Definition at line 272 of file Directory.cpp. Referenced by is_canonical(), and isLink(). |
|
|
Definition at line 312 of file Directory.cpp. Referenced by extractDirectory(), and extractFilename(). |
|
|
Definition at line 319 of file Directory.cpp. Referenced by scanDir_internal(). |
|
|
Definition at line 331 of file Directory.cpp. Referenced by scanDir_internal(). |
|
|
converts all backslashes to slashes.
Definition at line 344 of file Directory.cpp. |
|
||||||||||||
|
Definition at line 355 of file Directory.cpp. Referenced by scanDir_internal(). |
|
||||||||||||
|
concatenate directory with filename.
|
|
||||||||||||||||||||||||||||||||
|
scan content of directories (recursion controllable). Here you can influence the way how recursion is done.
|
|
||||||||||||||||||||||||||||
|
scan content of directories. This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. |
|
||||||||||||
|
create canonical filename.
|
|
|
test if filename is canonical.
Definition at line 170 of file Directory.h. |
|
|
extract directory part from filename.
|
|
|
remove directory part from a filename.
|
|
||||||||||||
|
test if a file is a windows link (*.lnk).
|
|
|
contains the separator used in full pathnames.
Definition at line 119 of file Directory.cpp. Referenced by catDF(), and Directory::fullPath(). |
|
Contact me in case of errors or questions. This documentation is powered by |
(C) 2000-2002 |