![]() |
Structural Bioinformatics Library
Template C++ / Python API for developping structural bioinformatics applications.
|
XML output archive decoupling the data to put in the archive and data to possibly put in a secondary file
More...
#include <Multiple_archives_serialization_xml_oarchive.hpp>
Constructors / Destructors | |
T_Multiple_archives_serialization_xml_oarchive (std::ostream &out, const unsigned BOOST_PFTO int flags=0) | |
Initializes with a file for the xml archive, but without any secondary archive. More... | |
T_Multiple_archives_serialization_xml_oarchive (std::ostream &out, std::ostream &sec_out, const unsigned BOOST_PFTO int flags=0) | |
Initializes with a file for the xml archive, and a file for the secondary archive. More... | |
T_Multiple_archives_serialization_xml_oarchive (std::ostream &out, Self &other, const unsigned BOOST_PFTO int flags=0) | |
Initializes with a file for the xml archive, and fill the data map with an existing one. More... | |
~T_Multiple_archives_serialization_xml_oarchive (void) | |
Deletes the secondary archive, if any. More... | |
Storing Data | |
unsigned | store_data (const DataType &t) |
Stores in the map (and in the secondary archive if any) the input data, and return its serialization index. More... | |
unsigned | store_data (const DataType *t) |
Stores in the map (and in the secondary archive if any) the input data, and return its serialization index. More... | |
Overrloaded Methods | |
template<class T > | |
void | save_override (const T &t, const unsigned BOOST_PFTO int flags) |
Saves any kind of data in the xml archive. More... | |
template<class T > | |
void | save_override (const T &t) |
Saves any kind of data in the xml archive. More... | |
void | save_override (boost::serialization::nvp< DataType > t, const unsigned BOOST_PFTO int flags) |
Saves the input data in the archive by printing its index saved in the map. More... | |
void | save_override (boost::serialization::nvp< DataType > t) |
Saves the input data in the archive by printing its index saved in the map. More... | |
void | save_override (boost::serialization::nvp< DataType * > t, const unsigned BOOST_PFTO int flags) |
Saves the input data in the archive by printing its index saved in the map. More... | |
void | save_override (boost::serialization::nvp< DataType * > t) |
Saves the input data in the archive by printing its index saved in the map. More... | |
template<class T , class Allocator > | |
void | save_override (boost::serialization::nvp< std::list< T, Allocator > > t, const unsigned BOOST_PFTO int flags) |
Override list serialization. More... | |
template<class T , class Allocator > | |
void | save_override (boost::serialization::nvp< std::list< T, Allocator > > t) |
Override list serialization. More... | |
template<class T , class Allocator > | |
void | save_override (boost::serialization::nvp< std::vector< T, Allocator > > t, const unsigned BOOST_PFTO int flags) |
Override vector serialization. More... | |
template<class T , class Allocator > | |
void | save_override (boost::serialization::nvp< std::vector< T, Allocator > > t) |
Override vector serialization. More... | |
template<class T , class Compare , class Allocator > | |
void | save_override (boost::serialization::nvp< std::set< T, Compare, Allocator > > t, const unsigned BOOST_PFTO int flags) |
Override set serialization. More... | |
template<class T , class Compare , class Allocator > | |
void | save_override (boost::serialization::nvp< std::set< T, Compare, Allocator > > t) |
Override set serialization. More... | |
template<class T , class Compare , class Allocator > | |
void | save_override (boost::serialization::nvp< std::multiset< T, Compare, Allocator > > t, const unsigned BOOST_PFTO int flags) |
Override multiset serialization. More... | |
template<class T , class Compare , class Allocator > | |
void | save_override (boost::serialization::nvp< std::multiset< T, Compare, Allocator > > t) |
Override multiset serialization. More... | |
template<class Key , class T , class Compare , class Allocator > | |
void | save_override (boost::serialization::nvp< std::map< Key, T, Compare, Allocator > > t, const unsigned BOOST_PFTO int flags) |
Override map serialization. More... | |
template<class Key , class T , class Compare , class Allocator > | |
void | save_override (boost::serialization::nvp< std::map< Key, T, Compare, Allocator > > t) |
Override map serialization. More... | |
template<class Key , class T , class Compare , class Allocator > | |
void | save_override (boost::serialization::nvp< std::multimap< Key, T, Compare, Allocator > > t, const unsigned BOOST_PFTO int flags) |
Override multimap serialization. More... | |
template<class Key , class T , class Compare , class Allocator > | |
void | save_override (boost::serialization::nvp< std::multimap< Key, T, Compare, Allocator > > t) |
Override multimap serialization. More... | |
XML output archive decoupling the data to put in the archive and data to possibly put in a secondary file
It attributes to each data an index that will be used for referencing in the xml archive the data possibly serialized in a secondary archive. The method store_data allows to store in a unique cpy of the data in the secondary archive. Then, the XML archive can be used as usual for serializing other data structures containing the partially serialized data structure.
DataType | Data to partially serialize (it has to be comparable). |
OutputArchive | Secondary archive type (default is text). |
IsLessData | Less comparator for DataType used for storing the data in the map (default is natural less operator). |
|
inline |
Initializes with a file for the xml archive, but without any secondary archive.
|
inline |
Initializes with a file for the xml archive, and a file for the secondary archive.
|
inline |
Initializes with a file for the xml archive, and fill the data map with an existing one.
|
inline |
Deletes the secondary archive, if any.
|
inline |
Saves the input data in the archive by printing its index saved in the map.
|
inline |
Saves the input data in the archive by printing its index saved in the map.
|
inline |
Saves the input data in the archive by printing its index saved in the map.
|
inline |
Saves the input data in the archive by printing its index saved in the map.
|
inline |
Override list serialization.
|
inline |
Override list serialization.
|
inline |
Override map serialization.
|
inline |
Override map serialization.
|
inline |
Override multimap serialization.
|
inline |
Override multimap serialization.
|
inline |
Override multiset serialization.
|
inline |
Override multiset serialization.
|
inline |
Override set serialization.
|
inline |
Override set serialization.
|
inline |
Override vector serialization.
|
inline |
Override vector serialization.
|
inline |
Saves any kind of data in the xml archive.
|
inline |
Saves any kind of data in the xml archive.
|
inline |
Stores in the map (and in the secondary archive if any) the input data, and return its serialization index.
|
inline |
Stores in the map (and in the secondary archive if any) the input data, and return its serialization index.