33 LDEBUG <<
"XmlBowDocumentHandler::setOut";
44 m_out->write(buf,length);
51 LDEBUG <<
"XmlBowDocumentHandler::startAnalysis write BOW_TEXT_BLOC";
62 LDEBUG <<
"xmlDocumentHandler::startNode " << elementName;
78 Node newNode(
"XML_BOW_DOCUMENT_HANDLER0",
98 LDEBUG <<
"XmlBowDocumentHandler::startNode write INDEXING_BLOC";
105 LDEBUG <<
"XmlBowDocumentHandler::startNode write HIERARCHY_BLOC";
111 LDEBUG <<
"XmlBowDocumentHandler::startNode write element name: " << elementName;
133 Node newNodeProps(
"XML_BOW_DOCUMENT_HANDLER1",
161 LDEBUG <<
"XmlBowDocumentHandler::endNode write NODE_PROPERTIES_BLOC";
166 LDEBUG <<
"XmlBowDocumentHandler::endNode write END_BLOC";
abstract handler for XML processing : just inherits from different handlers
std::vector< NODE_ID > m_openedNodes
void set_parentlastOpenedNode(NODE_ID nodeId)
NODE_ID get_parentlastOpenedNode() const
void set_lastNodeId(NODE_ID NID)
std::string get_lastUri() const
NODE_ID get_lastNodeId() const
void writeHeader(std::ostream &file, BoWFileType type) const
std::pair< uint64_t, bool > getIntValue(std::string propName) const
Read access functions for "only once valued" property propName.
void write(std::ostream &file) const
void addContent(CONTENT_ID ContentId, Content datas)
Ajouter un contenu au handler.
noeud de contenu au sein d'une structure.
TOPO_POS nodeStart() const
TOPO_POS nodeLength() const
void add_Node(const Node &node)
STRUCT_ID get_LastStructureId()
Accesseur de lastStructureId.
Node * get_Node(CONTENT_ID)
Récupérer un noeud du handler.
CONTENT_ID get_LastContentId()
void set_LastContentId(CONTENT_ID)
void set_LastStructureId(STRUCT_ID)
void startNode(const std::string &elementName, bool forIndexing) override
called by the document analyzer for a new hierarchy node
XmlBowDocumentHandler(std::shared_ptr< const ShiftFrom > shiftFrom)
void endNode(const Lima::Common::Misc::GenericDocumentProperties &props) override
called by the document analyzer at the end of a hierarchy node
void startAnalysis() override
function called by the LIMA analyzer on start of a new document
void handle(const char *buf, int length) override
gives content.
void setOut(std::ostream *out) override
set the output stream.
void writeOneByteInt(std::ostream &file, const uint8_t number)
write a integer coded on one byte format in a file
void writeStringField(ostream &file, const string &s)
uint64_t CONTENT_ID
Identifier of an feature content.
uint64_t STRUCT_ID
Identifier of a structure in the structure index.
uint64_t NODE_ID
Identifier of a node in a document.