3 //=============================================================================
7 * @author Douglas C. Schmidt <d.schmidt@vanderbilt.edu>
9 //=============================================================================
12 #ifndef _WEB_CRAWLER_H
13 #define _WEB_CRAWLER_H
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 // Forward declaration.
23 class URL_Visitor_Factory
;
28 * @brief An abstraction for a Web Crawler.
30 * This class is a Facade that organizes the other classes in the
31 * solution, which include a factory that creates a visitor,
32 * which in turn embodies the appropriate visitation strategy.
43 /// Parses the command-line options and initializes the
44 /// <URL_Visitor_Factory>.
45 int open (int argc
, ACE_TCHAR
*argv
[]);
47 /// Run the Web Crawler and carries out whatever visitation strategy
48 /// is configured. Returns -1 on failure and 0 on success.
53 * Pointer to a factory that creates visitors that explore URLs and
54 * perform various tasks. Subclasses of <URL_Visitor_Factory>
55 * determine what happens during a visitation.
57 URL_Visitor_Factory
*url_visitor_factory_
;
60 #endif /* _WEB_CRAWLER_H */