#include <filelink.h>
Inheritance diagram for FileLink::

Public Types | |
| typedef CppDir::File::size_type | size_type |
Public Methods | |
| FileLink (Line &line, bool used_by_filelist=false) | |
| bool | operator! () const |
| class not a tag?;. More... | |
| void | set_dir (std::string cd) |
| set the directory of the file. More... | |
| std::string | get_link () |
| std::string | get_link (std::string current_dir) |
| std::string | get_expr () const |
| std::string | get_origdir () const |
| std::string | get_publicdir () const |
| std::string | get_title () const |
| bool | display_size () const |
| bool | display_date () const |
| std::string | get_tag () |
| bool | has_hook () |
| std::string | get_hook () |
Protected Types | |
| enum | SortType { NUMERICAL, LEXICAL, DATE, NONE_TYPE } |
| enum | Sort { HIGHEST, LOWEST, NUMBER, NONE_SORT } |
Protected Methods | |
| std::string | get_file (std::string current_dir) |
| size_type | get_file_size () const |
| returns the file size in kb. More... | |
| std::string | get_file_name () const |
| std::string | get_file_date () const |
| std::string | get_tag_type () const |
| returns something like "menu". More... | |
| bool | get_option (std::string o, std::string &s) |
| returns the specific string to the option. More... | |
| bool | get_option (std::string o) |
| checks for flag options. More... | |
| std::string | get_basename (std::string title) |
| extracts the basename of a file. More... | |
| void | delete_default_options () |
| bool | match (std::string name) |
| bool | match (std::string expr, std::string name) |
| SortType | get_sorttype (std::string s) |
| Sort | get_sort (std::string s) |
| CppDir::File | match (CppDir::Directory::file_list &fl) |
| find the correct file. More... | |
| bool | get_warning () const |
| std::string | get_options () |
| returns a string with all options. More... | |
Protected Attributes | |
| std::string | expr |
| std::string | origdir |
| std::string | publicdir |
| std::string | title |
| bool | size_info |
| size_type | file_size |
| std::string | file_name |
| bool | date |
| std::string | file_date |
| std::string | format |
| std::string | ignore |
| bool | regex |
| bool | basename |
| SortType | sorttype |
| Sort | sort |
| int | sortnumber |
| bool | used_by_filelist |
| std::string | current_dir |
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
Reimplemented from Tag. |
|
|
|
|
|
|
|
|
extracts the basename of a file.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
returns the file size in kb. before using this function get_file() has tobe called |
|
|
Reimplemented from HookTag. |
|
|
Reimplemented in FileList. |
|
|
get the link, by using the directory that was set with set_dir() before Reimplemented in FileList. |
|
|
checks for flag options.
Reimplemented from Tag. |
|
||||||||||||
|
returns the specific string to the option. if the tag is <menu name="blah"> and you call get_option( "name" ) it returns "blah". If the option is not set the function returns false and if the option is set, but contains no string an empty string is returned Reimplemented from Tag. |
|
|
returns a string with all options.
Reimplemented from Tag. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
returns something like "menu".
Reimplemented from Tag. |
|
|
|
|
|
|
|
|
Reimplemented from HookTag. |
|
|
find the correct file.
|
|
||||||||||||
|
|
|
|
|
|
|
class not a tag?;.
Reimplemented from Tag. Reimplemented in FileList. |
|
|
set the directory of the file.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001