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 ()
 IMPLEMENT_CLASS_NAME ("bookmark_tree")
int read_csv_file (const istring &input_filename)
inner_mark_treeprocess_category (const string_array &items)
void process_link (const string_array &items)
void process_comment (const istring &current_line_in)
inner_mark_treefind_parent (const istring &parent_name)
inner_mark_treeaccess_root ()
int link_count () const
int category_count () const

Static Public Member Functions

static void break_name (const istring &to_break, istring &name, istring &nick)
static bool magic_category_comparison (const istring &a, const istring &b)

Public Attributes

int _line_number

Detailed Description

Definition at line 35 of file bookmark_tree.h.


Constructor & Destructor Documentation

bookmark_tree::bookmark_tree (  ) 

Definition at line 92 of file bookmark_tree.cpp.

bookmark_tree::~bookmark_tree (  )  [virtual]

Definition at line 103 of file bookmark_tree.cpp.

References WHACK().


Member Function Documentation

bookmark_tree::IMPLEMENT_CLASS_NAME ( "bookmark_tree"   ) 

int bookmark_tree::read_csv_file ( const istring input_filename  ) 

Definition at line 360 of file bookmark_tree.cpp.

References _line_number, class_name, DEADLY_LINE, istring::end(), FUNCDEF, byte_filer::getline(), byte_filer::good(), parser_bits::is_eol(), array< contents >::length(), LOG, MAX_LINE_SIZE, non_continuable_error, list_parsing::parse_csv_line(), process_category(), process_comment(), and process_link().

void bookmark_tree::break_name ( const istring to_break,
istring name,
istring nick 
) [static]

Definition at line 110 of file bookmark_tree.cpp.

References istring::empty_string(), istring::end(), istring::find(), negative(), istring::strip_spaces(), istring::substring(), and istring::zap().

Referenced by magic_category_comparison(), and process_category().

bool bookmark_tree::magic_category_comparison ( const istring a,
const istring b 
) [static]

Definition at line 127 of file bookmark_tree.cpp.

References break_name(), FUNCDEF, istring::iequals(), and istring::t().

Referenced by find_parent(), and process_category().

inner_mark_tree * bookmark_tree::process_category ( const string_array items  ) 

Definition at line 198 of file bookmark_tree.cpp.

References _line_number, symbol_table< contents >::add(), nodes::tree::attach(), nodes::symbol_tree::branch(), nodes::tree::branches(), break_name(), case_insense_compare(), class_name, deadly_error, DEADLY_LINE, nodes::symbol_tree::find(), symbol_table< contents >::find(), find_parent(), FUNCDEF, HASHING_PARAMETER, array< contents >::length(), LOG, magic_category_comparison(), nodes::symbol_tree::name(), NIL, non_continuable_error, and nodes::symbol_tree::sort().

Referenced by read_csv_file().

void bookmark_tree::process_link ( const string_array items  ) 

Definition at line 291 of file bookmark_tree.cpp.

References _line_number, inner_mark_tree::_links, listo_links::add(), istring::end(), find_parent(), FUNCDEF, array< contents >::length(), LOG, and array< contents >::zap().

Referenced by read_csv_file().

void bookmark_tree::process_comment ( const istring current_line_in  ) 

Definition at line 337 of file bookmark_tree.cpp.

References _line_number, inner_mark_tree::_links, listo_links::add(), istring::contains(), istring::empty_string(), istring::find(), FUNCDEF, istring::t(), and istring::zap().

Referenced by read_csv_file().

inner_mark_tree * bookmark_tree::find_parent ( const istring parent_name  ) 

Definition at line 144 of file bookmark_tree.cpp.

References _line_number, nodes::tree::attach(), nodes::symbol_tree::find(), FUNCDEF, HASHING_PARAMETER, LOG, magic_category_comparison(), nodes::symbol_tree::recurse_downward, nodes::symbol_tree::recurse_upward, and nodes::symbol_tree::sort().

Referenced by process_category(), and process_link().

inner_mark_tree & bookmark_tree::access_root (  ) 

Definition at line 125 of file bookmark_tree.cpp.

int bookmark_tree::link_count (  )  const [inline]

Definition at line 67 of file bookmark_tree.h.

int bookmark_tree::category_count (  )  const [inline]

Definition at line 69 of file bookmark_tree.h.


Member Data Documentation

int bookmark_tree::_line_number

Definition at line 72 of file bookmark_tree.h.

Referenced by find_parent(), process_category(), process_comment(), process_link(), and read_csv_file().


The documentation for this class was generated from the following files:
Generated on Fri Aug 29 04:30:20 2008 for HOOPLE Libraries by  doxygen 1.5.1