Database for global (thread-safe) parser use.
More...
#include <globalparserdatabase.hpp>
List of all members.
Detailed Description
Database for global (thread-safe) parser use.
Constructor & Destructor Documentation
GlobalParserDatabase::GlobalParserDatabase |
( |
|
) |
|
Member Function Documentation
int GlobalParserDatabase::attributeNameId |
( |
const QString & |
attributeName |
) |
|
Returns the attribute name id.
Thread-safe. It will add the attribute name if unknown and then cache again the buffer map.
- Exceptions:
-
void GlobalParserDatabase::cancelFile |
( |
int |
idFile, |
|
|
bool |
toError | |
|
) |
| | |
Update the file status to 'waiting'.
Thread-safe.
- Exceptions:
-
int GlobalParserDatabase::generateDocumentId |
( |
|
) |
const |
Returns an available document id.
Thread-safe.
- Exceptions:
-
DocumentList GlobalParserDatabase::getDocuments |
( |
int |
count |
) |
const |
Gets count documents with the Waiting status.
- Warning:
- Not thread-safe !
- Parameters:
-
| count | The max count of documents to get, set to -1 for no limit |
- Exceptions:
-
void GlobalParserDatabase::refreshAttributeNames |
( |
|
) |
|
Refresh the buffer map of the attribute names.
- Warning:
- Not thread-safe !
- Exceptions:
-
void GlobalParserDatabase::refreshTagNames |
( |
|
) |
|
Refresh the buffer map of the tag names.
- Warning:
- Not thread-safe !
- Exceptions:
-
int GlobalParserDatabase::tagNameId |
( |
const QString & |
tagName |
) |
|
Returns the tag name id.
Thread-safe. It will add the tag name if unknown and then cache again the buffer map.
- Exceptions:
-