PicoScenes API Docs
 
Loading...
Searching...
No Matches
SystemTools::Persistence Namespace Reference

Functions

std::string boostPropertyTree2JSON (const pt::ptree &tree, bool prettyOutput=true)
 Converts a Boost property tree to a JSON string.
 
pt::ptree jSON2BoostPropertyTree (const std::string &jsonContent)
 Converts a JSON string to a Boost property tree.
 
std::string boostPropertyTree2INI (const pt::ptree &tree, bool prettyOutput=true)
 Converts a Boost property tree to an INI string.
 
pt::ptree INI2BoostPropertyTree (const std::string &iniContent)
 Converts an INI string to a Boost property tree.
 

Function Documentation

◆ boostPropertyTree2INI()

std::string SystemTools::Persistence::boostPropertyTree2INI ( const pt::ptree &  tree,
bool  prettyOutput = true 
)

Converts a Boost property tree to an INI string.

Parameters
treeThe property tree.
prettyOutputWhether to format the output prettily.
Returns
An INI string representing the property tree.

◆ boostPropertyTree2JSON()

std::string SystemTools::Persistence::boostPropertyTree2JSON ( const pt::ptree &  tree,
bool  prettyOutput = true 
)

Converts a Boost property tree to a JSON string.

Parameters
treeThe property tree.
prettyOutputWhether to format the output prettily.
Returns
A JSON string representing the property tree.

◆ INI2BoostPropertyTree()

pt::ptree SystemTools::Persistence::INI2BoostPropertyTree ( const std::string &  iniContent)

Converts an INI string to a Boost property tree.

Parameters
iniContentThe INI string.
Returns
A Boost property tree.

◆ jSON2BoostPropertyTree()

pt::ptree SystemTools::Persistence::jSON2BoostPropertyTree ( const std::string &  jsonContent)

Converts a JSON string to a Boost property tree.

Parameters
jsonContentThe JSON string.
Returns
A Boost property tree.