CYCLUS
Loading...
Searching...
No Matches
cyclus::XMLParser Class Reference

Detailed Description

A helper class to hold xml file data and provide automatic validation.

Definition at line 15 of file xml_parser.h.

#include <xml_parser.h>

Public Member Functions

xmlpp::Document * Document ()
 
void Init (const std::string &input)
 
void Init (const std::stringstream &input)
 
void Validate (const std::stringstream &schema)
 
 XMLParser ()
 
virtual ~XMLParser ()
 

Constructor & Destructor Documentation

◆ XMLParser()

cyclus::XMLParser::XMLParser ( )

constructor

Definition at line 22 of file xml_parser.cc.

◆ ~XMLParser()

cyclus::XMLParser::~XMLParser ( )
virtual

destructor

Definition at line 27 of file xml_parser.cc.

Member Function Documentation

◆ Document()

xmlpp::Document * cyclus::XMLParser::Document ( )
Returns
the parser's document

Definition at line 61 of file xml_parser.cc.

◆ Init() [1/2]

void cyclus::XMLParser::Init ( const std::string & input)

Definition at line 32 of file xml_parser.cc.

◆ Init() [2/2]

void cyclus::XMLParser::Init ( const std::stringstream & input)

initializes a parser with an xml snippet

Parameters
inputan xml snippet to be used as input

Definition at line 49 of file xml_parser.cc.

◆ Validate()

void cyclus::XMLParser::Validate ( const std::stringstream & schema)

validates the file agaisnt a schema

Parameters
schemathe schema to validate agaisnt

Definition at line 54 of file xml_parser.cc.


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