feisty meow concerns codebase  2.140
bookmark_tree Class Reference

#include <bookmark_tree.h>

Public Member Functions

 bookmark_tree ()
 
virtual ~bookmark_tree ()
 
 DEFINE_CLASS_NAME ("bookmark_tree")
 
int read_csv_file (const basis::astring &input_filename)
 
inner_mark_treeprocess_category (const structures::string_array &items)
 
void process_link (const structures::string_array &items)
 
void process_comment (const basis::astring &current_line_in)
 
inner_mark_treefind_parent (const basis::astring &parent_name)
 
inner_mark_treeaccess_root ()
 
int link_count () const
 
int category_count () const
 

Static Public Member Functions

static void break_name (const basis::astring &to_break, basis::astring &name, basis::astring &nick)
 
static bool magic_category_comparison (const basis::astring &a, const basis::astring &b)
 
static basis::astring prune_link_down (const basis::astring &to_prune)
 
static bool excellent_link_comparator (const basis::astring &a, const basis::astring &b)
 
static bool advance (int &index, const basis::astring &check, const basis::astring &finding)
 moves the "index" forward if the "finding" string is the head of "check". More...
 
static int find_prune_point (const basis::astring &to_prune)
 attempts to locate the real start of the root URL in "to_prune". More...
 

Public Attributes

int _line_number
 

Detailed Description

Definition at line 36 of file bookmark_tree.h.

Constructor & Destructor Documentation

◆ bookmark_tree()

bookmark_tree::bookmark_tree ( )

Definition at line 101 of file bookmark_tree.cpp.

◆ ~bookmark_tree()

bookmark_tree::~bookmark_tree ( )
virtual

Definition at line 112 of file bookmark_tree.cpp.

References basis::WHACK().

Member Function Documentation

◆ access_root()

inner_mark_tree & bookmark_tree::access_root ( )

Definition at line 134 of file bookmark_tree.cpp.

◆ advance()

bool bookmark_tree::advance ( int &  index,
const basis::astring check,
const basis::astring finding 
)
static

moves the "index" forward if the "finding" string is the head of "check".

Definition at line 157 of file bookmark_tree.cpp.

References basis::astring::compare(), and basis::astring::length().

Referenced by find_prune_point().

◆ break_name()

void bookmark_tree::break_name ( const basis::astring to_break,
basis::astring name,
basis::astring nick 
)
static

◆ category_count()

int bookmark_tree::category_count ( ) const
inline

Definition at line 87 of file bookmark_tree.h.

◆ DEFINE_CLASS_NAME()

bookmark_tree::DEFINE_CLASS_NAME ( "bookmark_tree"  )

◆ excellent_link_comparator()

bool bookmark_tree::excellent_link_comparator ( const basis::astring a,
const basis::astring b 
)
static

◆ find_parent()

◆ find_prune_point()

int bookmark_tree::find_prune_point ( const basis::astring to_prune)
static

attempts to locate the real start of the root URL in "to_prune".

Definition at line 166 of file bookmark_tree.cpp.

References advance(), FTP_HEAD, FTP_SITE, HTTP_HEAD, and WWW_SITE.

Referenced by excellent_link_comparator(), and prune_link_down().

◆ link_count()

int bookmark_tree::link_count ( ) const
inline

Definition at line 85 of file bookmark_tree.h.

◆ magic_category_comparison()

bool bookmark_tree::magic_category_comparison ( const basis::astring a,
const basis::astring b 
)
static

Definition at line 136 of file bookmark_tree.cpp.

References break_name(), FUNCDEF, basis::astring::iequals(), and basis::astring::t().

Referenced by find_parent(), and process_category().

◆ process_category()

◆ process_comment()

void bookmark_tree::process_comment ( const basis::astring current_line_in)

◆ process_link()

◆ prune_link_down()

astring bookmark_tree::prune_link_down ( const basis::astring to_prune)
static

Definition at line 176 of file bookmark_tree.cpp.

References basis::astring::end(), find_prune_point(), and basis::astring::substring().

Referenced by process_link().

◆ read_csv_file()

Member Data Documentation

◆ _line_number

int bookmark_tree::_line_number

The documentation for this class was generated from the following files: