Elm  2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
Content Class Referenceabstract

#include <elm/xom/dtd.h>

+ Inheritance diagram for Content:

Public Member Functions

virtual ~Content (void)
 
virtual void reset ()=0
 

Protected Member Functions

bool doParse (Content &content, Parser &parser)
 
virtual bool parse (Parser &parser)=0
 

Detailed Description

This abstract class represents the contents of an XML element. It provides basically two function: parse() to parse an XML element content and reset() to reset the attributes used in the content.

Constructor & Destructor Documentation

◆ ~Content()

~Content ( void  )
virtual

Member Function Documentation

◆ doParse()

bool doParse ( Content content,
Parser parser 
)
inlineprotected

For internal use only.

References Content::parse().

Referenced by Optional::parse(), Alt::parse(), Seq::parse(), and Repeat::parse().

◆ parse()

bool parse ( Parser parser)
protectedpure virtual

Parse the content of the current element in the parser.

Parameters
parserParser to parse with.

Implemented in AnyContent, PCDATAContent, IgnoredContent, EmptyContent, Repeat, Seq, Alt, Optional, and Element.

Referenced by Content::doParse(), and Element::parse().

◆ reset()

void reset ( )
pure virtual

Called to reset the state of the content internals.

Implemented in AnyContent, PCDATAContent, IgnoredContent, EmptyContent, Repeat, Seq, Alt, Optional, and Element.

Referenced by Optional::reset(), Alt::reset(), Seq::reset(), and Repeat::reset().


The documentation for this class was generated from the following files: