HM3
Hierarchical Multi-physics Multi-scale Methods
 All Classes Namespaces Functions Variables Typedefs Enumerations Pages
hm3::io Namespace Reference

I/O functionality. More...

Classes

struct  client
 Helps a single file group interact with an io::session. More...
 
struct  file
 Describes a single file. More...
 
struct  session
 Manages io from interdependent multiple sources. More...
 

Typedefs

using properties = std::unordered_map< string, detail::any_type >
 Property container.
 
using property = std::pair< string, detail::any_type >
 Property type.
 

Functions

template<typename T >
void insert (properties &ps, string const &name, std::remove_reference_t< T > value)
 Inserts a property with name and value into the property container properties.
 
template<typename T >
T & read (properties &ps, string const &name)
 Reads property of type T with name from container properties. More...
 
template<typename T >
void read (properties const &ps, string const &name, T &value)
 Reads property with name from property container properties into the value.
 

Detailed Description

I/O functionality.

Function Documentation

template<typename T >
T& hm3::io::read ( properties &  ps,
string const &  name 
)

Reads property of type T with name from container properties.

Returns
the property value