LibDocument

image-alt

Document and Trie Processing.


ldoc_vis_ent_t Struct Reference

Version: 0.1.1

An entity visitor object calls the given visitor functions based on entity type. More...

#include <document.h>

Public Attributes

ldoc_ser_t *(* vis_bl )(ldoc_nde_t *nde, ldoc_ent_t *ent, ldoc_coord_t *coord)
 
ldoc_ser_t *(* vis_br )(ldoc_nde_t *nde, ldoc_ent_t *ent, ldoc_coord_t *coord)
 
ldoc_ser_t *(* vis_em1 )(ldoc_nde_t *nde, ldoc_ent_t *ent, ldoc_coord_t *coord)
 
ldoc_ser_t *(* vis_em2 )(ldoc_nde_t *nde, ldoc_ent_t *ent, ldoc_coord_t *coord)
 
ldoc_ser_t *(* vis_uri )(ldoc_nde_t *nde, ldoc_ent_t *ent, ldoc_coord_t *coord)
 
ldoc_ser_t *(* vis_ref )(ldoc_nde_t *nde, ldoc_ent_t *ent, ldoc_coord_t *coord)
 
ldoc_ser_t *(* vis_num )(ldoc_nde_t *nde, ldoc_ent_t *ent, ldoc_coord_t *coord)
 
ldoc_ser_t *(* vis_nr )(ldoc_nde_t *nde, ldoc_ent_t *ent, ldoc_coord_t *coord)
 
ldoc_ser_t *(* vis_or )(ldoc_nde_t *nde, ldoc_ent_t *ent, ldoc_coord_t *coord)
 
ldoc_ser_t *(* vis_txt )(ldoc_nde_t *nde, ldoc_ent_t *ent, ldoc_coord_t *coord)
 

Detailed Description

An entity visitor object calls the given visitor functions based on entity type.

Note: This structure and the enumerations ldoc_struct_t and ldoc_content_t go hand-in-hand. Each content type can have its own visitor, but it is also possible to re-use a single function for all content types.

Member Data Documentation

ldoc_ser_t*(* ldoc_vis_ent_t::vis_bl) (ldoc_nde_t *nde, ldoc_ent_t *ent, ldoc_coord_t *coord)

Called when visiting a "boolean" entity (LDOC_ENT_BL).

ldoc_ser_t*(* ldoc_vis_ent_t::vis_br) (ldoc_nde_t *nde, ldoc_ent_t *ent, ldoc_coord_t *coord)

Called when visiting a "boolean reference" entity (LDOC_ENT_BR).

ldoc_ser_t*(* ldoc_vis_ent_t::vis_em1) (ldoc_nde_t *nde, ldoc_ent_t *ent, ldoc_coord_t *coord)

Called when visiting an "emphasized text" (type 1) entity (LDOC_ENT_EM1).

ldoc_ser_t*(* ldoc_vis_ent_t::vis_em2) (ldoc_nde_t *nde, ldoc_ent_t *ent, ldoc_coord_t *coord)

Called when visiting an "emphasized text" (type 2) entity (LDOC_ENT_EM2).

ldoc_ser_t*(* ldoc_vis_ent_t::vis_nr) (ldoc_nde_t *nde, ldoc_ent_t *ent, ldoc_coord_t *coord)

Called when visiting a "numbered reference" entity (LDOC_ENT_NR).

ldoc_ser_t*(* ldoc_vis_ent_t::vis_num) (ldoc_nde_t *nde, ldoc_ent_t *ent, ldoc_coord_t *coord)

Called when visiting a "number" entity (LDOC_ENT_NUM).

ldoc_ser_t*(* ldoc_vis_ent_t::vis_or) (ldoc_nde_t *nde, ldoc_ent_t *ent, ldoc_coord_t *coord)

Called when visiting an "ontology reference" entity (LDOC_ENT_OR).

ldoc_ser_t*(* ldoc_vis_ent_t::vis_ref) (ldoc_nde_t *nde, ldoc_ent_t *ent, ldoc_coord_t *coord)

Called when visiting a "reference" entity (LDOC_ENT_REF).

ldoc_ser_t*(* ldoc_vis_ent_t::vis_txt) (ldoc_nde_t *nde, ldoc_ent_t *ent, ldoc_coord_t *coord)

Called when visiting a "plain text" entity (LDOC_ENT_TXT).

ldoc_ser_t*(* ldoc_vis_ent_t::vis_uri) (ldoc_nde_t *nde, ldoc_ent_t *ent, ldoc_coord_t *coord)

Called when visiting an "URI" entity (LDOC_ENT_URI).


The documentation for this struct was generated from the following file: