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

Detailed Description

a class that encapsulates the methods needed to load input to a cyclus simulation from xml

Definition at line 16 of file xml_flat_loader.h.

#include <xml_flat_loader.h>

Inheritance diagram for cyclus::XMLFlatLoader:
Inheritance graph
[legend]

Public Member Functions

void LoadInitialAgents ()
 
 XMLFlatLoader (Recorder *r, QueryableBackend *b, std::string schema_path, const std::string load_filename="", const std::string format="none", bool ms_print=false)
 
- Public Member Functions inherited from cyclus::XMLFileLoader
virtual void LoadSim ()
 
 XMLFileLoader (Recorder *r, QueryableBackend *b, std::string schema_file, const std::string input_file="", const std::string format="none", bool ms_print=false)
 
virtual ~XMLFileLoader ()
 

Protected Member Functions

virtual std::string master_schema ()
 
- Protected Member Functions inherited from cyclus::XMLFileLoader
AgentBuildAgent (std::string proto, Agent *parent)
 
void LoadControlParams ()
 
void LoadRecipe (InfileTree *qe)
 
void LoadRecipes ()
 
void LoadSolver ()
 
void LoadSpecs ()
 
void ProcessCommodities (std::map< std::string, double > *commodity_priority)
 

Additional Inherited Members

- Protected Attributes inherited from cyclus::XMLFileLoader
QueryableBackendb_
 
Contextctx_
 
std::string file_
 
std::string format_
 
bool ms_print_
 
boost::shared_ptr< XMLParserparser_
 
Recorderrec_
 
std::string schema_path_
 
std::map< std::string, AgentSpecspecs_
 
Timer ti_
 

Constructor & Destructor Documentation

◆ XMLFlatLoader()

cyclus::XMLFlatLoader::XMLFlatLoader ( Recorder r,
QueryableBackend b,
std::string  schema_path,
const std::string  load_filename = "",
const std::string  format = "none",
bool  ms_print = false 
)
inline

Definition at line 18 of file xml_flat_loader.h.

Member Function Documentation

◆ LoadInitialAgents()

void cyclus::XMLFlatLoader::LoadInitialAgents ( )
virtual

Creates all initial agent instances from the input file.

Reimplemented from cyclus::XMLFileLoader.

Definition at line 47 of file xml_flat_loader.cc.

◆ master_schema()

std::string cyclus::XMLFlatLoader::master_schema ( )
protectedvirtual

Reimplemented from cyclus::XMLFileLoader.

Definition at line 43 of file xml_flat_loader.cc.


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