CYCLUS
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 
6 namespace 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.
12 std::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
16 class XMLFlatLoader : public XMLFileLoader {
17  public:
18  XMLFlatLoader(Recorder* r, QueryableBackend* b, std::string schema_path,
19  const std::string load_filename = "")
20  : XMLFileLoader(r, b, schema_path, load_filename) {}
21 
22  /// Creates all initial agent instances from the input file.
23  void LoadInitialAgents();
24 
25  protected:
26  virtual std::string master_schema();
27 };
28 
29 } // namespace cyclus
30 
31 #endif // CYCLUS_SRC_XML_FLAT_LOADER_H_
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 ...
double b(int nuc)
Computes the scattering length [cm] from the coherent and incoherent components.
Definition: pyne.cc:11180
XMLFlatLoader(Recorder *r, QueryableBackend *b, std::string schema_path, const std::string load_filename="")
virtual std::string master_schema()
Handles initialization of a database with information from a cyclus xml input file.
Collects and manages output data generation for the cyclus core and agents during a simulation...
Definition: recorder.h:45
taken directly from OsiSolverInterface.cpp on 2/17/14 from https://projects.coin-or.org/Osi/browser/trunk.
Definition: agent.cc:14
void LoadInitialAgents()
Creates all initial agent instances from the input file.
Interface implemented by backends that support rudimentary querying.
a class that encapsulates the methods needed to load input to a cyclus simulation from xml ...