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