Tulip Plugins
Public Member Functions | Public Attributes
WebImport Struct Reference

List of all members.

Public Member Functions

 WebImport (AlgorithmContext context)
string urlDecode (const string &url)
bool addNode (const UrlElement &url, node &n)
bool addEdge (const UrlElement &source, const UrlElement &target, const char *type, const Color *color)
bool nextUrl (UrlElement &url)
void findAndTreatUrls (const string &lowercase, const string &balise, UrlElement &url)
void parseHtml (UrlElement &url)
void addUrl (const UrlElement &url, bool _toVisit)
void addServer (const string &servername)
void parseUrl (const string &href, UrlElement &starturl)
bool start ()
bool import (const string &)

Public Attributes

std::deque< UrlElement > toVisit
std::set< UrlElement > visited
std::map< UrlElement, tlp::node > nodes
tlp::StringProperty * labels
tlp::StringProperty * urls
tlp::ColorProperty * colors
tlp::Color * redirectionColor
unsigned int maxSize
unsigned int nbNodes
bool visitOther
bool extractNonHttp

Constructor & Destructor Documentation

WebImport::WebImport ( AlgorithmContext  context) [inline]

Member Function Documentation

bool WebImport::addEdge ( const UrlElement &  source,
const UrlElement &  target,
const char *  type,
const Color *  color 
) [inline]
bool WebImport::addNode ( const UrlElement &  url,
node &  n 
) [inline]
void WebImport::addServer ( const string &  servername) [inline]
void WebImport::addUrl ( const UrlElement &  url,
bool  _toVisit 
) [inline]
void WebImport::findAndTreatUrls ( const string &  lowercase,
const string &  balise,
UrlElement &  url 
) [inline]
bool WebImport::import ( const string &  ) [inline]
bool WebImport::nextUrl ( UrlElement &  url) [inline]
void WebImport::parseHtml ( UrlElement &  url) [inline]
void WebImport::parseUrl ( const string &  href,
UrlElement &  starturl 
) [inline]
bool WebImport::start ( ) [inline]
string WebImport::urlDecode ( const string &  url) [inline]

Member Data Documentation

tlp::ColorProperty* WebImport::colors
tlp::StringProperty* WebImport::labels
unsigned int WebImport::maxSize
unsigned int WebImport::nbNodes
std::map<UrlElement, tlp::node> WebImport::nodes
tlp::StringProperty* WebImport::urls