CYCLUS
Public Member Functions | List of all members
cyclus::XMLParser Class Reference

Detailed Description

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

Definition at line 16 of file xml_parser.h.

#include <xml_parser.h>

Public Member Functions

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

Constructor & Destructor Documentation

cyclus::XMLParser::XMLParser ( )

constructor

Definition at line 14 of file xml_parser.cc.

cyclus::XMLParser::~XMLParser ( )
virtual

destructor

Definition at line 19 of file xml_parser.cc.

Member Function Documentation

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

Definition at line 49 of file xml_parser.cc.

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 24 of file xml_parser.cc.

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

validates the file agaisnt a schema

Parameters
schemathe schema to validate agaisnt

Definition at line 42 of file xml_parser.cc.


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