Boost logo

Boost :

From: Tim Michals (tcmichals_at_[hidden])
Date: 2005-04-12 08:26:29


Yes, this can work, and is a straight forward implementation. But is there
anyway to use the RTTI information? Or some how using the
BOOST_CLASS_IMPLEMENTATION(my_class,
boost::serialization::object_class_info) to add class name and reference
this? Or something like the test_no_rrti.cpp example, but using rtti
embedded infromation?

>From: "Robert Ramey" <ramey_at_[hidden]>
>Reply-To: boost_at_[hidden]
>To: boost_at_[hidden]
>Subject: [boost] Re: Serializing using RTTI
>Date: Mon, 11 Apr 2005 17:40:04 -0700
>
>How about the following?
>
>saveData( std::string fileInfo)
>{
> os << userSaveConfig;
> if (userSaveConfig )
> os << saveConfig;
> if (optionSave)
> os < saveOptions;
>}
>
>getData(std::string fileInfo)
>{
> int userSaveConfig;
> os >> userSaveConfig
> if (userSaveConfig )
> os << saveConfig;
> if (optionSave)
> os < saveOptions;
>}
>
>Robert Ramey
>
>
>
>_______________________________________________
>Unsubscribe & other changes:
>http://lists.boost.org/mailman/listinfo.cgi/boost


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk