/* Web Polygraph       http://www.web-polygraph.org/
 * (C) 2003-2006 The Measurement Factory
 * Licensed under the Apache License, Version 2.0 */

#ifndef POLYGRAPH__CSM_OID2URL_H
#define POLYGRAPH__CSM_OID2URL_H

#include "xstd/h/iosfwd.h"
#include "xstd/NetAddr.h"

class ObjId;
class ContentCfg;

extern ostream &Oid2Url(const ObjId &oid, ostream &os);
extern ostream &Oid2UrlHost(const ObjId &oid, ostream &os);
extern ostream &Oid2UrlPath(const ObjId &oid, ostream &os);

// XXX: move to oidAlgos
NetAddr Oid2UrlHost(const ObjId &oid);
extern int Oid2ContType(const ObjId &oid);
extern bool OidImpliesMarkup(const ObjId &oid, const ContentCfg *cfg = 0);

#endif


syntax highlighted by Code2HTML, v. 0.9.1