bookmark_tree Class Reference

#include <bookmark_tree.h>

Collaboration diagram for bookmark_tree:
Collaboration graph
[legend]

List of all members.

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".
static int find_prune_point (const basis::astring &to_prune)
 attempts to locate the real start of the root URL in "to_prune".

Public Attributes

int _line_number

Detailed Description

Definition at line 36 of file bookmark_tree.h.


Constructor & Destructor Documentation

bookmark_tree::bookmark_tree (  ) 

Definition at line 101 of file bookmark_tree.cpp.

bookmark_tree::~bookmark_tree (  )  [virtual]

Definition at line 112 of file bookmark_tree.cpp.

References basis::WHACK().


Member Function Documentation

inner_mark_tree & bookmark_tree::access_root (  ) 

Definition at line 134 of file bookmark_tree.cpp.

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().

void bookmark_tree::break_name ( const basis::astring to_break,
basis::astring name,
basis::astring nick 
) [static]
int bookmark_tree::category_count (  )  const [inline]

Definition at line 87 of file bookmark_tree.h.

bookmark_tree::DEFINE_CLASS_NAME ( "bookmark_tree"   ) 
bool bookmark_tree::excellent_link_comparator ( const basis::astring a,
const basis::astring b 
) [static]
inner_mark_tree * bookmark_tree::find_parent ( const basis::astring parent_name  ) 
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().

Referenced by excellent_link_comparator(), and prune_link_down().

int bookmark_tree::link_count (  )  const [inline]

Definition at line 85 of file bookmark_tree.h.

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(), basis::astring::iequals(), and basis::astring::t().

Referenced by find_parent(), and process_category().

inner_mark_tree * bookmark_tree::process_category ( const structures::string_array items  ) 
void bookmark_tree::process_comment ( const basis::astring current_line_in  ) 
void bookmark_tree::process_link ( const structures::string_array items  ) 
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().

int bookmark_tree::read_csv_file ( const basis::astring input_filename  ) 

Member Data Documentation


The documentation for this class was generated from the following files:
Generated on Sat Jan 28 04:25:08 2012 for hoople2 project by  doxygen 1.6.3