open-source-search-engine/MetaContainer.h

40 lines
700 B
C
Raw Normal View History

2013-08-03 00:12:24 +04:00
// Gigablast, copyright Dec 2004
// Author: Javier Olivares
//
// . Generic Container Interface
#ifndef _METACONTAINER_H_
#define _METACONTAINER_H_
#define MAX_URLLEN 128
#include "Xml.h"
#include "Log.h"
#include "Url.h"
class MetaContainer {
public:
MetaContainer();
virtual ~MetaContainer();
// parse a page into this container
2014-11-11 01:45:11 +03:00
virtual void parse ( char *page, int32_t pageLen );
2013-08-03 00:12:24 +04:00
// build the meta html page from this container
2014-11-11 01:45:11 +03:00
virtual int32_t buildPage ( char *page );
2013-08-03 00:12:24 +04:00
virtual void buildPage ( SafeBuf *sb );
// url
char m_url[MAX_URLLEN+1];
2014-11-11 01:45:11 +03:00
int32_t m_urlLen;
2013-08-03 00:12:24 +04:00
// base container name
char m_baseName[MAX_URLLEN+1];
2014-11-11 01:45:11 +03:00
int32_t m_baseNameLen;
2013-08-03 00:12:24 +04:00
// ID
2014-10-30 22:36:39 +03:00
int64_t m_id;
2013-08-03 00:12:24 +04:00
};
#endif