libcrn  3.9.5
A document image processing library
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Functions
XML file handling

XML files manipulation tools. More...

Classes

class  crn::xml::Alto
 XML Alto file wrapper. More...
 
class  Description
 Alto global description. More...
 
class  Layout
 XML Alto layout element. More...
 
class  Layout::Page
 XML Alto Page element. More...
 
class  Space
 A print space on a page. More...
 
class  Space::Block
 Base class for blocks in spaces. More...
 
class  Space::Illustration
 Illustration in a space. More...
 
class  Space::GraphicalElement
 Graphical element in a space. More...
 
class  Space::ComposedBlock
 A composed block in a space. More...
 
class  Styles
 List of styles used in the document. More...
 
class  Styles::Text
 A text style. More...
 
class  Styles::Paragraph
 A paragraph style. More...
 
class  TextBlock
 Alto text block. More...
 
class  TextBlock::TextLine
 Alto text line. More...
 
class  TextBlock::TextLine::LineElement
 Base class for elements in a text line. More...
 
class  TextBlock::TextLine::Word
 Alto word ("String" element) More...
 
class  TextBlock::TextLine::WhiteSpace
 Alto white space ("SP" element) More...
 
class  TextBlock::TextLine::Hyphen
 Alto hyphen ("HYP" element) More...
 
struct  crn::xml::PagePath
 
struct  crn::xml::SpacePath
 
struct  crn::xml::BlockPath
 
struct  crn::xml::TextLinePath
 
struct  crn::xml::WordPath
 
class  crn::xml::AltoWrapper
 XML Alto file wrapper to crn::Document. More...
 
class  crn::xml::AltoWrapper::View
 Wrapper on a view. More...
 
class  crn::xml::Node
 XML node. More...
 
class  crn::xml::Element
 XML element. More...
 
class  crn::xml::Comment
 XML comment. More...
 
class  crn::xml::Document
 XML document. More...
 

Functions

std::vector< Idcrn::xml::GetStyleRefs (const Element &el)
 Gets the list of style references. More...
 
void crn::xml::AddStyleRef (Element &el, const Id &id)
 Adds a style reference to an element. More...
 
void crn::xml::RemoveStyleRef (Element &el, const Id &id)
 Removes a style reference to an element. More...
 

Detailed Description

XML files manipulation tools.

XML files manipulation tools (wrapper on TinyXml2 and Alto files management)

Author
Yann LEYDIER
Date
August 2012

Function Documentation

void crn::xml::AddStyleRef ( Element el,
const Id id 
)

Adds a style reference to an element.

Adds a style reference to an element

Parameters
[in]elthe element
[in]stylesthe element's list of styles
[in]idthe style to add
Author
Yann LEYDIER

Definition at line 50 of file CRNAltoUtils.cpp.

std::vector< Id > crn::xml::GetStyleRefs ( const Element el)

Gets the list of style references.

Gets the list of style references

Parameters
[in]elthe element
Returns
the style references
Author
Yann LEYDIER

Definition at line 34 of file CRNAltoUtils.cpp.

void crn::xml::RemoveStyleRef ( Element el,
const Id id 
)

Removes a style reference to an element.

Removes a style reference to an element

Parameters
[in]elthe element
[in]stylesthe element's list of styles
[in]idthe style to add
Author
Yann LEYDIER

Definition at line 69 of file CRNAltoUtils.cpp.