CYCLUS
discovery.h
Go to the documentation of this file.
1 #ifndef CYCLUS_SRC_DISCOVERY_H_
2 #define CYCLUS_SRC_DISCOVERY_H_
3 
4 #include <map>
5 #include <set>
6 #include <string>
7 
8 #include "pyne.h"
9 
10 // Undefines isnan from pyne
11 #ifdef isnan
12  #undef isnan
13 #endif
14 
15 namespace cyclus {
16 
17 /// This function returns a vector of archetype names in a given
18 /// string that is the binary represnetation of a module/shared-object/library.
19 std::set<std::string> DiscoverArchetypes(const std::string s);
20 
21 /// Discover archetype specifications for a path and library.
22 std::set<std::string> DiscoverSpecs(std::string p, std::string lib);
23 
24 /// Discover archetype specifications that live recursively in modules in a dir.
25 std::set<std::string> DiscoverSpecsInDir(std::string d);
26 
27 /// Discover archetype specifications that live recursively in CYCLUS_PATH directories.
28 std::set<std::string> DiscoverSpecsInCyclusPath();
29 
30 /// Discover archetype metadata in cyclus path
31 /// @return a Json::Value having the structure
32 /// {
33 /// "specs": ["<spec1>", "<spec2>", ...],
34 /// "annotations": {"<spec1>": <annotation dict1>, ...},
35 /// "schema": {"<spec1>": "<schema1>"}
36 /// }
38 
39 } // namespace cyclus
40 
41 #endif // CYCLUS_SRC_DISCOVERY_H_
std::set< std::string > DiscoverSpecsInDir(std::string d)
Discover archetype specifications that live recursively in modules in a dir.
Definition: discovery.cc:80
Json::Value DiscoverMetadataInCyclusPath()
Discover archetype metadata in cyclus path.
Definition: discovery.cc:146
std::set< std::string > DiscoverArchetypes(const std::string s)
This function returns a vector of archetype names in a given string that is the binary represnetation...
Definition: discovery.cc:23
Represents a JSON value.
Definition: pyne.h:3224
std::set< std::string > DiscoverSpecs(std::string p, std::string lib)
Discover archetype specifications for a path and library.
Definition: discovery.cc:48
std::set< std::string > DiscoverSpecsInCyclusPath()
Discover archetype specifications that live recursively in CYCLUS_PATH directories.
Definition: discovery.cc:130
taken directly from OsiSolverInterface.cpp on 2/17/14 from https://projects.coin-or.org/Osi/browser/trunk.
Definition: agent.cc:14