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

#include <elm/xom/dtd.h>

+ Inheritance diagram for Optional:

Public Member Functions

 Optional (Content &content)
 
- Public Member Functions inherited from Content
virtual ~Content (void)
 

Protected Member Functions

void reset () override
 
bool parse (Parser &parser) override
 
- Protected Member Functions inherited from Content
bool doParse (Content &content, Parser &parser)
 

Detailed Description

Represent an optional content: if the content is recognized, it is consumed in the parser. Anyhow, a successful parse answer is returned.

Constructor & Destructor Documentation

◆ Optional()

Optional ( Content content)

Build an optional content.

Parameters
contentOptional content.

Member Function Documentation

◆ parse()

bool parse ( Parser parser)
overrideprotectedvirtual

Parse the content of the current element in the parser.

Parameters
parserParser to parse with.

Implements Content.

References Content::doParse(), and Parser::ended().

◆ reset()

void reset ( )
overrideprotectedvirtual

Called to reset the state of the content internals.

Implements Content.

References Content::reset().


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