|
a/src/internfile/internfile.h |
|
b/src/internfile/internfile.h |
|
... |
|
... |
14 |
* Free Software Foundation, Inc.,
|
14 |
* Free Software Foundation, Inc.,
|
15 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
15 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
16 |
*/
|
16 |
*/
|
17 |
#ifndef _INTERNFILE_H_INCLUDED_
|
17 |
#ifndef _INTERNFILE_H_INCLUDED_
|
18 |
#define _INTERNFILE_H_INCLUDED_
|
18 |
#define _INTERNFILE_H_INCLUDED_
|
19 |
/* @(#$Id: internfile.h,v 1.16 2007-06-26 16:09:19 dockes Exp $ (C) 2004 J.F.Dockes */
|
19 |
/* @(#$Id: internfile.h,v 1.17 2008-08-26 07:33:05 dockes Exp $ (C) 2004 J.F.Dockes */
|
20 |
|
20 |
|
21 |
#include <string>
|
21 |
#include <string>
|
22 |
#include <vector>
|
22 |
#include <vector>
|
23 |
using std::string;
|
23 |
using std::string;
|
24 |
using std::vector;
|
24 |
using std::vector;
|
|
... |
|
... |
37 |
* A class to convert a file into possibly multiple documents in internal
|
37 |
* A class to convert a file into possibly multiple documents in internal
|
38 |
* representation.
|
38 |
* representation.
|
39 |
*/
|
39 |
*/
|
40 |
class FileInterner {
|
40 |
class FileInterner {
|
41 |
public:
|
41 |
public:
|
42 |
|
42 |
/**
|
|
|
43 |
* Get immediate parent for document.
|
|
|
44 |
*
|
|
|
45 |
* This is not in general the same as the "parent" document used
|
|
|
46 |
* with Rcl::Db::addOrUpdate(). The latter is generally the enclosing file.
|
|
|
47 |
*/
|
|
|
48 |
static bool getEnclosing(const string &url, const string &ipath,
|
|
|
49 |
string &eurl, string &eipath);
|
43 |
/**
|
50 |
/**
|
44 |
* Identify and possibly decompress file, create adequate
|
51 |
* Identify and possibly decompress file, create adequate
|
45 |
* handler. The mtype parameter is only set when the object is
|
52 |
* handler. The mtype parameter is only set when the object is
|
46 |
* created for previewing a file. Filter output may be
|
53 |
* created for previewing a file. Filter output may be
|
47 |
* different for previewing and indexing.
|
54 |
* different for previewing and indexing.
|