![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
Serialization - Derivation from an Existing ArchiveBoost , ,
The purpose of this example is to help clarify the usage of the Archive Concept so that one can implement his own archive classes. simple_log_archive.hpp implements a simple but useful
archive class. This class can be used to send any serializable types
on an output text stream in a readable format. Usage of this facility
is trivially easy:
and it produces the following output
The complete example is
demo_simple_log.cpp . Look at
Trivial Archive to get a
better understanding of how this works.
Also, note the following:
© Авторское правоРоберт Рэми2002-2010. Распространяется под лицензией Boost Software License, версия 1.0. (См. сопроводительный файл LICENSE_1_0.txt или копию по адресу http://www.boost.org/LICENSE_1_0.txt) Статья Serialization - Derivation from an Existing Archive раздела может быть полезна для разработчиков на c++ и boost. Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта. :: Главная :: ::
|
||||||
©KANSoftWare (разработка программного обеспечения, создание программ, создание интерактивных сайтов), 2007 |