CYCLUS
Loading...
Searching...
No Matches
xml_flat_loader.h
Go to the documentation of this file.
1#ifndef CYCLUS_SRC_XML_FLAT_LOADER_H_
2#define CYCLUS_SRC_XML_FLAT_LOADER_H_
3
4#include "xml_file_loader.h"
5
6namespace cyclus {
7
8/// Builds and returns a master cyclus input xml schema defining a flat
9/// prototype and instance structure that includes the sub-schemas defined by
10/// all installed cyclus modules (e.g. facility agents). This is used to
11/// validate simulation input files.
12std::string BuildFlatMasterSchema(std::string schema_path, std::string infile);
13
14/// a class that encapsulates the methods needed to load input to
15/// a cyclus simulation from xml
17 public:
19 const std::string load_filename="", const std::string format="none",
20 bool ms_print=false)
22
23 /// Creates all initial agent instances from the input file.
24 void LoadInitialAgents();
25
26 protected:
27 virtual std::string master_schema();
28};
29
30} // namespace cyclus
31
32#endif // CYCLUS_SRC_XML_FLAT_LOADER_H_
Interface implemented by backends that support rudimentary querying.
Collects and manages output data generation for the cyclus core and agents during a simulation.
Definition recorder.h:45
Handles initialization of a database with information from a cyclus xml input file.
a class that encapsulates the methods needed to load input to a cyclus simulation from xml
void LoadInitialAgents()
Creates all initial agent instances from the input file.
virtual std::string master_schema()
XMLFlatLoader(Recorder *r, QueryableBackend *b, std::string schema_path, const std::string load_filename="", const std::string format="none", bool ms_print=false)
taken directly from OsiSolverInterface.cpp on 2/17/14 from https://projects.coin-or....
Definition agent.cc:14
std::string BuildFlatMasterSchema(std::string schema_path, std::string infile)
Builds and returns a master cyclus input xml schema defining a flat prototype and instance structure ...
T OptionalQuery(InfileTree *tree, std::string query, T default_val)
a query method for optional parameters