|
AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
|
A sub-type of Record representing a single run of an applicaiton. More...
#include </home/docs/checkouts/readthedocs.org/user_builds/axom/checkouts/develop/src/axom/sina/core/Run.hpp>

Public Types | |
| using | FileSet = std::unordered_set< File, FileHashByURI, FileEqualByURI > |
| using | DatumMap = std::unordered_map< std::string, Datum > |
| using | CurveSetMap = std::unordered_map< std::string, CurveSet > |
| using | LibraryDataMap = std::unordered_map< std::string, std::shared_ptr< DataHolder > > |
Public Member Functions | |
| Run (ID id, std::string application, std::string version="", std::string user="") | |
| Create a new Run. More... | |
| Run (conduit::Node const &asNode) | |
| Create a Run from its representation as a conduit Node. More... | |
| std::string const & | getApplication () const |
| Get the application that was run. More... | |
| std::string const & | getVersion () const |
| Get the version of the application that was run. More... | |
| std::string const & | getUser () const |
| Get the name of the user who ran the application. More... | |
| conduit::Node | toNode (CurveSet::CurveOrder curveOrder) const override |
| Convert this record to its conduit Node representation. More... | |
| conduit::Node | toNode () const |
| void | setDefaultCurveOrder (CurveSet::CurveOrder order) |
| Set the default curve order for all Records. More... | |
| CurveSet::CurveOrder | getDefaultCurveOrder () const |
| Get the effective default curve order for this Record. More... | |
| ID const & | getId () const noexcept |
| Get the Record's ID. More... | |
| std::string const & | getType () const noexcept |
| Get the Record's type. More... | |
| void | remove (File const &file) |
| Remove a File from this record. More... | |
| void | add (File file) |
| Add a File to this record. More... | |
| void | add (std::string name, Datum datum) |
| Add a Datum to this DataHolder. More... | |
| void | add (CurveSet curveSet) |
| Add a CurveSet to this DataHolder. More... | |
| void | add (std::string name, Datum datum) |
| Add a Datum to this DataHolder. More... | |
| void | add (CurveSet curveSet) |
| Add a CurveSet to this DataHolder. More... | |
| FileSet const & | getFiles () const noexcept |
| Get the files associated with this record. More... | |
| void | addRecordAsLibraryData (Record const &childRecord, std::string const &name) |
| Add another record to this one as library data. More... | |
| DatumMap const & | getData () const noexcept |
| Get the DataHolder's data. More... | |
| CurveSetMap const & | getCurveSets () const noexcept |
| Get the curve sets associated with this DataHolder. More... | |
| std::shared_ptr< DataHolder > | addLibraryData (std::string const &name) |
| Add a new library to this DataHolder. More... | |
| std::shared_ptr< DataHolder > | addLibraryData (std::string const &name, conduit::Node existingLibraryData) |
| Add a new library to this DataHolder with existing library data. More... | |
| LibraryDataMap const & | getLibraryData () const noexcept |
| Get all library data associated with this DataHolder. More... | |
| std::shared_ptr< DataHolder > | getLibraryData (std::string const &libraryName) |
| Get a specific library associated with this DataHolder. More... | |
| std::shared_ptr< DataHolder > const | getLibraryData (std::string const &libraryName) const |
| Get a specific library associated with this DataHolder. More... | |
| conduit::Node const & | getUserDefinedContent () const noexcept |
| Get the user-defined content of the object. More... | |
| conduit::Node & | getUserDefinedContent () noexcept |
| Get the user-defined content of the object. More... | |
| void | setUserDefinedContent (conduit::Node userDefined) |
| Set the user-defined content of the object. More... | |
Static Public Attributes | |
| static CurveSet::CurveOrder | defaultCurveOrder |
A sub-type of Record representing a single run of an applicaiton.
A Run is a subtype of Record corresponding to a single run of an application, as specified in the Sina schema. A Run has a few additional fields required in addition to the id required by a Record (type is automatically set to "run"):
To create a Run:
|
inherited |
An unordered set of File objects.
|
inherited |
An unordered map of Datum objects.
|
inherited |
An unordered map of CurveSet objects.
|
inherited |
An unordered map of shared pointers to DataHolder objects.
| axom::sina::Run::Run | ( | ID | id, |
| std::string | application, | ||
| std::string | version = "", |
||
| std::string | user = "" |
||
| ) |
|
explicit |
Create a Run from its representation as a conduit Node.
| asNode | the run as a Node |
|
inline |
Get the application that was run.
|
inline |
Get the version of the application that was run.
|
inline |
Get the name of the user who ran the application.
|
overridevirtual |
Convert this record to its conduit Node representation.
| curveOrder | Optionally, specify an order that CurveSets should be written in. Options are enumerated in CurveSets; REGISTRATION_OLDEST_FIRST is "ULTRA style". |
Reimplemented from axom::sina::Record.
| conduit::Node axom::sina::Run::toNode | ( | ) | const |
|
inherited |
Set the default curve order for all Records.
| order | the new default curve order |
|
inherited |
Get the effective default curve order for this Record.
|
inlinenoexceptinherited |
|
inlinenoexceptinherited |
|
inherited |
|
inherited |
|
inherited |
Add a Datum to this DataHolder.
|
inherited |
Add a CurveSet to this DataHolder.
| curveSet | the CurveSet to add |
|
inherited |
Add a Datum to this DataHolder.
|
inherited |
Add a CurveSet to this DataHolder.
| curveSet | the CurveSet to add |
|
inlinenoexceptinherited |
Get the files associated with this record.
|
inherited |
Add another record to this one as library data.
Useful for libraries that can run in standalone mode; the host simply calls this method on the record the library produces. Merges file lists.
| name | The host code's name for the library |
|
inlinenoexceptinherited |
Get the DataHolder's data.
|
inlinenoexceptinherited |
Get the curve sets associated with this DataHolder.
|
inherited |
Add a new library to this DataHolder.
If you try to add a library with a name that already exists, the old library will be replaced.
|
inherited |
Add a new library to this DataHolder with existing library data.
|
inlinenoexceptinherited |
Get all library data associated with this DataHolder.
|
inlineinherited |
Get a specific library associated with this DataHolder.
|
inlineinherited |
Get a specific library associated with this DataHolder.
|
inlinenoexceptinherited |
Get the user-defined content of the object.
|
inlinenoexceptinherited |
Get the user-defined content of the object.
|
inherited |
Set the user-defined content of the object.
| userDefined | the user-defined content. Must be an object (key/value pairs) |
|
staticinherited |
An enum member representing the default ordering of Curves within CurveSets.