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/// the vector of specs.
11/// This is used internally by other BuildFlatMasterSchema.
12std::string BuildFlatMasterSchema(
13 std::string schema_path, std::vector<AgentSpec> specs);
14
15/// Builds and returns a master cyclus input xml schema defining a flat
16/// prototype and instance structure that includes the sub-schemas defined by
17/// all installed cyclus modules (e.g. facility agents). This is used to
18/// share all valid gammar.
19std::string BuildFlatMasterSchema(std::string schema_path);
20
21/// Builds and returns a master cyclus input xml schema defining a flat
22/// prototype and instance structure that includes the sub-schemas defined by
23/// the input file. This is used to validate simulation input files.
24std::string BuildFlatMasterSchema(std::string schema_path, std::string infile);
25
26/// a class that encapsulates the methods needed to load input to
27/// a cyclus simulation from xml
29 public:
30 XMLFlatLoader(Recorder* r, QueryableBackend* b, std::string schema_path,
31 const std::string load_filename = "",
32 const std::string format = "none", bool ms_print = false)
33 : XMLFileLoader(r, b, schema_path, load_filename, format, ms_print) {}
34
35 /// Creates all initial agent instances from the input file.
36 void LoadInitialAgents();
37
38 protected:
39 virtual std::string master_schema();
40};
41
42} // namespace cyclus
43
44#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
XMLFileLoader(Recorder *r, QueryableBackend *b, std::string schema_file, const std::string input_file="", const std::string format="none", bool ms_print=false)
Create a new loader reading from the xml simulation input file and writing to and initializing the ba...
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::vector< AgentSpec > specs)
Builds and returns a master cyclus input xml schema defining a flat prototype and instance structure ...