|
a/src/internfile/internfile.h |
|
b/src/internfile/internfile.h |
|
... |
|
... |
154 |
* actual document (ie: use mtype, fn, ipath...).
|
154 |
* actual document (ie: use mtype, fn, ipath...).
|
155 |
*/
|
155 |
*/
|
156 |
static bool idocToFile(TempFile& temp, const string& tofile,
|
156 |
static bool idocToFile(TempFile& temp, const string& tofile,
|
157 |
RclConfig *cnf, const Rcl::Doc& doc);
|
157 |
RclConfig *cnf, const Rcl::Doc& doc);
|
158 |
|
158 |
|
|
|
159 |
/**
|
|
|
160 |
* Does file appear to be the compressed version of a document?
|
|
|
161 |
*/
|
|
|
162 |
static bool isCompressed(const string& fn, RclConfig *cnf);
|
|
|
163 |
|
|
|
164 |
/**
|
|
|
165 |
* Check input compressed, allocate temp file and uncompress if it is.
|
|
|
166 |
* @return true if ok, false for error. Actual decompression is indicated
|
|
|
167 |
* by the TempFile status (!isNull())
|
|
|
168 |
*/
|
|
|
169 |
static bool maybeUncompressToTemp(TempFile& temp, const string& fn,
|
|
|
170 |
RclConfig *cnf, const Rcl::Doc& doc);
|
|
|
171 |
|
159 |
const string& getReason() const {return m_reason;}
|
172 |
const string& getReason() const {return m_reason;}
|
160 |
static void getMissingExternal(string& missing);
|
173 |
static void getMissingExternal(string& missing);
|
161 |
static void getMissingDescription(string& desc);
|
174 |
static void getMissingDescription(string& desc);
|
162 |
bool ok() {return m_ok;}
|
175 |
bool ok() {return m_ok;}
|
|
|
176 |
|
163 |
|
177 |
|
164 |
private:
|
178 |
private:
|
165 |
static const unsigned int MAXHANDLERS = 20;
|
179 |
static const unsigned int MAXHANDLERS = 20;
|
166 |
RclConfig *m_cfg;
|
180 |
RclConfig *m_cfg;
|
167 |
string m_fn;
|
181 |
string m_fn;
|