AXOM
Axom provides a robust, flexible software infrastructure for the development of multi-physics applications and computational tools.
ConduitUtil.hpp File Reference

Header file for Sina Conduit utility functions. More...

#include <string>
#include <vector>
#include "conduit.hpp"

Namespaces

 axom
 
 axom::sina
 

Functions

conduit::Node const & axom::sina::getRequiredField (std::string const &fieldName, conduit::Node const &parent, std::string const &parentType)
 Get a required field from a conduit Node. More...
 
std::string axom::sina::getRequiredString (std::string const &fieldName, conduit::Node const &parent, std::string const &parentType)
 Get the value of a required field from a conduit Node. The field value must be a string. More...
 
double axom::sina::getRequiredDouble (std::string const &fieldName, conduit::Node const &parent, std::string const &parentType)
 Get the value of a required field from a conduit Node. The field value must be a double. More...
 
std::string axom::sina::getOptionalString (std::string const &fieldName, conduit::Node const &parent, std::string const &parentType)
 Get the value of an optional field from a conduit Node. The field value must be a string if it is present. More...
 
std::vector< double > axom::sina::toDoubleVector (conduit::Node const &node, std::string const &name)
 Convert the given node to a vector of doubles. More...
 
std::vector< std::string > axom::sina::toStringVector (conduit::Node const &node, std::string const &name)
 Convert the given node to a vector of strings. More...
 
void axom::sina::addStringsToNode (conduit::Node &parent, const std::string &child_name, std::vector< std::string > const &string_values)
 Add a vector of strings to a Node. This operation's not natively part of Conduit. More...
 

Detailed Description

Header file for Sina Conduit utility functions.