#include <PropertyTree.hpp>

Public Member Functions

 PropertyTree ()
 
 PropertyTree (const std::string &jsonFile)
 
 PropertyTree (const PropertyTree &tree)
 
 ~PropertyTree ()
 
template<class T >
void put (const std::string &key, const T &data)
 
template<class T >
get (const std::string &key) const
 
template<class T >
get (const std::string &key, const T &defValue) const
 
PropertyTree get_child (const std::string &key) const
 
std::optional< PropertyTreeget_child_optional (const std::string &key) const
 
PropertyTreeoperator= (const PropertyTree &tree)
 
void write_json (std::ostream &os, bool pretty) const
 

Protected Member Functions

 PropertyTree (const boost::property_tree::ptree &tree)
 

Protected Attributes

std::unique_ptr< boost::property_tree::ptreetree_
 

Constructor & Destructor Documentation

◆ PropertyTree() [1/4]

Opm::PropertyTree::PropertyTree ( )

◆ PropertyTree() [2/4]

Opm::PropertyTree::PropertyTree ( const std::string &  jsonFile)

◆ PropertyTree() [3/4]

Opm::PropertyTree::PropertyTree ( const PropertyTree tree)

◆ ~PropertyTree()

Opm::PropertyTree::~PropertyTree ( )

◆ PropertyTree() [4/4]

Opm::PropertyTree::PropertyTree ( const boost::property_tree::ptree tree)
protected

Member Function Documentation

◆ get() [1/2]

◆ get() [2/2]

template<class T >
T Opm::PropertyTree::get ( const std::string &  key,
const T &  defValue 
) const

◆ get_child()

PropertyTree Opm::PropertyTree::get_child ( const std::string &  key) const

◆ get_child_optional()

std::optional< PropertyTree > Opm::PropertyTree::get_child_optional ( const std::string &  key) const

◆ operator=()

PropertyTree & Opm::PropertyTree::operator= ( const PropertyTree tree)

◆ put()

template<class T >
void Opm::PropertyTree::put ( const std::string &  key,
const T &  data 
)

◆ write_json()

void Opm::PropertyTree::write_json ( std::ostream &  os,
bool  pretty 
) const

Member Data Documentation

◆ tree_

std::unique_ptr<boost::property_tree::ptree> Opm::PropertyTree::tree_
protected

The documentation for this class was generated from the following file: