proxsuite 0.6.7
The Advanced Proximal Optimization Toolbox
Loading...
Searching...
No Matches
archive.hpp File Reference
#include <fstream>
#include <string>
#include <cereal/cereal.hpp>
#include <cereal/archives/binary.hpp>
#include <cereal/archives/json.hpp>
#include <cereal/archives/xml.hpp>
Include dependency graph for archive.hpp:

Go to the source code of this file.

Namespaces

namespace  proxsuite
 
namespace  proxsuite::serialization
 

Functions

template<typename T >
void proxsuite::serialization::loadFromStringStream (T &object, std::istringstream &is)
 Loads an object from a std::stringstream.
 
template<typename T >
void proxsuite::serialization::saveToStringStream (const T &object, std::stringstream &ss)
 Saves an object inside a std::stringstream.
 
template<typename T >
void proxsuite::serialization::loadFromString (T &object, const std::string &str)
 Loads an object from a std::string.
 
template<typename T >
std::string proxsuite::serialization::saveToString (const T &object)
 Saves an object inside a std::string.
 
template<typename T >
void proxsuite::serialization::loadFromBinary (T &object, const std::string &filename)
 Loads an object from a binary file.
 
template<typename T >
void proxsuite::serialization::saveToBinary (const T &object, const std::string &filename)
 Saves an object inside a binary file.
 
template<typename T >
void proxsuite::serialization::loadFromJSON (T &object, const std::string &filename)
 Loads an object from a JSON file.
 
template<typename T >
void proxsuite::serialization::saveToJSON (const T &object, const std::string &filename)
 Saves an object inside a JSON file.
 
template<typename T >
void proxsuite::serialization::loadFromXML (T &object, const std::string &filename)
 Loads an object from a XML file.
 
template<typename T >
void proxsuite::serialization::saveToXML (const T &object, const std::string &filename)
 Saves an object inside a XML file.