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.
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:
19  const std::string load_filename="", const std::string format="none",
20  bool ms_print=false)
21  : XMLFileLoader(r, b, schema_path, load_filename, format, ms_print) {}
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_
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
virtual std::string master_schema()
Handles initialization of a database with information from a cyclus xml input file.
XMLFlatLoader(Recorder *r, QueryableBackend *b, std::string schema_path, const std::string load_filename="", const std::string format="none", bool ms_print=false)
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 ...