3 #ifndef __ARC_URLMAP_H__ 4 #define __ARC_URLMAP_H__ 9 #include <arc/Logger.h> 30 map_entry(
const URL& templ,
const URL& repl,
const URL& accs =
URL())
35 std::list<map_entry> entries;
71 operator bool()
const {
return entries.size() != 0; };
73 bool operator!()
const {
return entries.size() == 0; };
78 #endif // __ARC_URLMAP_H__ Arc namespace contains all core ARC classes.
Definition: ArcConfig.h:11
bool map(URL &url) const
Map a URL if possible.
A logger class.
Definition: Logger.h:493
void add(const URL &templ, const URL &repl, const URL &accs=URL())
Add an entry to the URLMap.
bool local(const URL &url) const
Check if a mapping exists for a URL.
Class to represent general URLs.
Definition: URL.h:88
URLMap allows mapping certain patterns of URLs to other URLs.
Definition: URLMap.h:22
bool operator!() const
Returns true if the URLMap is empty.
Definition: URLMap.h:73
URLMap()
Construct an empty URLMap.