Another thing!
I've settled that for text binary and xml archives.
Now I want a method that just saves data (binary to the file).
like
void Serialize(void* data, size_t size);
I mean I'm serializing an object but I want to store some data, just store it.
How can I make that? If it is a text or a xml file it's ok. You see
the other members of the object and the void * you see it but just
strange characters.
Thanks
On 1/12/07, Miguel Silvestre
So true! And so stupid of me.... LOL
Ok! It's compiling and running.. But with warnings:
d:\flow project\flowengine\3rdparty\include\boost\serialization\extended_type_info_typeid.hpp(92) : warning C4541: 'typeid' used on polymorphic type 'FlowEngine::Serializer' with /GR-; unpredictable behavior may result d:\flow project\flowengine\3rdparty\include\boost\serialization\extended_type_info_typeid.hpp(86) : while compiling class template member function 'const boost::serialization::extended_type_info *boost::serialization::detail::extended_type_info_typeid_1<T>::get_derived_extended_type_info(const FlowEngine::Serializer &)' with [ T=const FlowEngine::Serializer ] d:\flow project\flowengine\3rdparty\include\boost\serialization\extended_type_info_typeid.hpp(111) : see reference to class template instantiation 'boost::serialization::detail::extended_type_info_typeid_1<T>' being compiled with [ T=const FlowEngine::Serializer ] d:\flow project\flowengine\3rdparty\include\boost\archive\detail\oserializer.hpp(131) : see reference to class template instantiation 'boost::serialization::extended_type_info_typeid<T>' being compiled with [ T=const FlowEngine::Serializer ] d:\flow project\flowengine\3rdparty\include\boost\archive\detail\oserializer.hpp(128) : while compiling class template member function 'bool boost::archive::detail::oserializer
::is_polymorphic(void) const' with [ Archive=FlowEngine::BinaryArchiveO, T=FlowEngine::Serializer ] d:\flow project\flowengine\3rdparty\include\boost\archive\detail\oserializer.hpp(264) : see reference to class template instantiation 'boost::archive::detail::oserializer ' being compiled with [ Archive=FlowEngine::BinaryArchiveO, T=FlowEngine::Serializer ] d:\flow project\flowengine\3rdparty\include\boost\archive\detail\oserializer.hpp(263) : while compiling class template member function 'void boost::archive::detail::save_non_pointer_type ::save_standard::invoke(Archive &,const T &)' with [ Archive=FlowEngine::BinaryArchiveO, T=FlowEngine::Serializer ] d:\flow project\flowengine\3rdparty\include\boost\archive\detail\oserializer.hpp(322) : see reference to class template instantiation 'boost::archive::detail::save_non_pointer_type ::save_standard' being compiled with [ Archive=FlowEngine::BinaryArchiveO, T=FlowEngine::Serializer ] d:\flow project\flowengine\3rdparty\include\boost\archive\detail\oserializer.hpp(310) : while compiling class template member function 'void boost::archive::detail::save_non_pointer_type ::invoke(Archive &,const T &)' with [ Archive=FlowEngine::BinaryArchiveO, T=FlowEngine::Serializer ] d:\flow project\flowengine\3rdparty\include\boost\archive\detail\oserializer.hpp(536) : see reference to class template instantiation 'boost::archive::detail::save_non_pointer_type ' being compiled with [ Archive=FlowEngine::BinaryArchiveO, T=FlowEngine::Serializer ] d:\flow project\flowengine\3rdparty\include\boost\archive\basic_binary_oarchive.hpp(70) : see reference to function template instantiation 'void boost::archive::save (Archive &,const T &)' being compiled with [ Archive=FlowEngine::BinaryArchiveO, T=FlowEngine::Serializer ] d:\flow project\flowengine\3rdparty\include\boost\archive\binary_oarchive.hpp(47) : see reference to function template instantiation 'void boost::archive::basic_binary_oarchive<Archive>::save_override<T>(T &,int)' being compiled with [ Archive=FlowEngine::BinaryArchiveO, T=FlowEngine::Serializer ] d:\flow project\flowengine\engine\include\core\serialization\binaryserializer.h(54) : see reference to function template instantiation 'void boost::archive::binary_oarchive_impl<Archive>::save_override<T>(T &,int)' being compiled with [ Archive=FlowEngine::BinaryArchiveO, T=FlowEngine::Serializer ] d:\flow project\flowengine\3rdparty\include\boost\archive\detail\interface_oarchive.hpp(78) : see reference to function template instantiation 'void FlowEngine::BinaryArchiveO::save_override<T>(T &,int)' being compiled with [ T=FlowEngine::Serializer ] d:\flow project\flowengine\3rdparty\include\boost\serialization\nvp.hpp(77) : see reference to function template instantiation 'Archive &boost::archive::detail::interface_oarchive<Archive>::operator <<<const T>(T &)' being compiled with [ Archive=FlowEngine::BinaryArchiveO, T=FlowEngine::Serializer ] d:\flow project\flowengine\3rdparty\include\boost\serialization\access.hpp(93) : see reference to function template instantiation 'void boost::serialization::nvp<T>::save<Archive>(Archivex &,const unsigned int) const' being compiled with [ T=FlowEngine::Serializer, Archive=FlowEngine::BinaryArchiveO, Archivex=FlowEngine::BinaryArchiveO ] d:\flow project\flowengine\3rdparty\include\boost\serialization\split_member.hpp(43) : see reference to function template instantiation 'void boost::serialization::access::member_save (Archive &,T &,const unsigned int)' being compiled with [ Archive=FlowEngine::BinaryArchiveO, T=boost::serialization::nvpFlowEngine::Serializer ] d:\flow project\flowengine\3rdparty\include\boost\serialization\split_member.hpp(42) : while compiling class template member function 'void boost::serialization::detail::member_saver ::invoke(Archive &,const T &,const unsigned int)' with [ Archive=FlowEngine::BinaryArchiveO, T=boost::serialization::nvpFlowEngine::Serializer ] d:\flow project\flowengine\3rdparty\include\boost\serialization\split_member.hpp(69) : see reference to class template instantiation 'boost::serialization::detail::member_saver ' being compiled with [ Archive=FlowEngine::BinaryArchiveO, T=boost::serialization::nvpFlowEngine::Serializer ] d:\flow project\flowengine\3rdparty\include\boost\serialization\nvp.hpp(87) : see reference to function template instantiation 'void boost::serialization::split_member (Archive &,boost::serialization::nvp<T> &,const unsigned int)' being compiled with [ Archive=FlowEngine::BinaryArchiveO, T=FlowEngine::Serializer ] d:\flow project\flowengine\3rdparty\include\boost\serialization\access.hpp(109) : see reference to function template instantiation 'void boost::serialization::nvp<T>::serialize<Archive>(Archive &,const unsigned int)' being compiled with [ T=FlowEngine::Serializer, Archive=FlowEngine::BinaryArchiveO ] d:\flow project\flowengine\3rdparty\include\boost\serialization\serialization.hpp(81) : see reference to function template instantiation 'void boost::serialization::access::serialize (Archive &,T &,const unsigned int)' being compiled with [ Archive=FlowEngine::BinaryArchiveO, T=const boost::serialization::nvpFlowEngine::Serializer ] d:\flow project\flowengine\3rdparty\include\boost\serialization\serialization.hpp(140) : see reference to function template instantiation 'void boost::serialization::serialize (Archive &,T &,const unsigned int)' being compiled with [ Archive=FlowEngine::BinaryArchiveO, T=const boost::serialization::nvpFlowEngine::Serializer ] d:\flow project\flowengine\3rdparty\include\boost\archive\detail\oserializer.hpp(257) : see reference to function template instantiation 'void boost::serialization::serialize_adl (Archive &,T &,const unsigned int)' being compiled with [ Archive=FlowEngine::BinaryArchiveO, T=const boost::serialization::nvpFlowEngine::Serializer ] d:\flow project\flowengine\3rdparty\include\boost\archive\detail\oserializer.hpp(250) : while compiling class template member function 'void boost::archive::detail::save_non_pointer_type ::save_only::invoke(Archive &,const boost::serialization::nvpFlowEngine::Serializer &)' with [ Archive=FlowEngine::BinaryArchiveO, T=boost::serialization::nvpFlowEngine::Serializer ] d:\flow project\flowengine\3rdparty\include\boost\archive\detail\oserializer.hpp(322) : see reference to class template instantiation 'boost::archive::detail::save_non_pointer_type ::save_only' being compiled with [ Archive=FlowEngine::BinaryArchiveO, T=boost::serialization::nvpFlowEngine::Serializer ] d:\flow project\flowengine\3rdparty\include\boost\archive\detail\oserializer.hpp(310) : while compiling class template member function 'void boost::archive::detail::save_non_pointer_type ::invoke(Archive &,const boost::serialization::nvpFlowEngine::Serializer &)' with [ Archive=FlowEngine::BinaryArchiveO, T=boost::serialization::nvpFlowEngine::Serializer ] d:\flow project\flowengine\3rdparty\include\boost\archive\detail\oserializer.hpp(536) : see reference to class template instantiation 'boost::archive::detail::save_non_pointer_type ' being compiled with [ Archive=FlowEngine::BinaryArchiveO, T=boost::serialization::nvpFlowEngine::Serializer ] d:\flow project\flowengine\3rdparty\include\boost\archive\basic_binary_oarchive.hpp(70) : see reference to function template instantiation 'void boost::archive::save (Archive &,const T &)' being compiled with [ Archive=FlowEngine::BinaryArchiveO, T=const boost::serialization::nvpFlowEngine::Serializer ] d:\flow project\flowengine\3rdparty\include\boost\archive\binary_oarchive.hpp(47) : see reference to function template instantiation 'void boost::archive::basic_binary_oarchive<Archive>::save_override<T>(T &,int)' being compiled with [ Archive=FlowEngine::BinaryArchiveO, T=const boost::serialization::nvpFlowEngine::Serializer ] d:\flow project\flowengine\engine\include\core\serialization\binaryserializer.h(54) : see reference to function template instantiation 'void boost::archive::binary_oarchive_impl<Archive>::save_override<T>(T &,int)' being compiled with [ Archive=FlowEngine::BinaryArchiveO, T=const boost::serialization::nvpFlowEngine::Serializer ] d:\flow project\flowengine\3rdparty\include\boost\archive\detail\interface_oarchive.hpp(78) : see reference to function template instantiation 'void FlowEngine::BinaryArchiveO::save_override<T>(T &,int)' being compiled with [ T=const boost::serialization::nvpFlowEngine::Serializer ] d:\flow project\flowengine\3rdparty\include\boost\archive\detail\interface_oarchive.hpp(86) : see reference to function template instantiation 'Archive &boost::archive::detail::interface_oarchive<Archive>::operator <<<T>(T &)' being compiled with [ Archive=FlowEngine::BinaryArchiveO, T=const boost::serialization::nvpFlowEngine::Serializer ] d:\flow project\flowengine\engine\include\core\serialization\binaryserializer.h(80) : see reference to function template instantiation 'Archive &boost::archive::detail::interface_oarchive<Archive>::operator & (const boost::serialization::nvp<T> &)' being compiled with [ Archive=FlowEngine::BinaryArchiveO, T=FlowEngine::Serializer ] d:\flow project\flowengine\3rdparty\include\boost\smart_cast.hpp(76) : warning C4541: 'dynamic_cast' used on polymorphic type 'boost::archive::detail::basic_oarchive' with /GR-; unpredictable behavior may result d:\flow project\flowengine\3rdparty\include\boost\smart_cast.hpp(87) : see reference to function template instantiation 'T boost::smart_cast_impl::reference<T>::polymorphic::cross::cast<U>(U &)' being compiled with [ T=FlowEngine::BinaryArchiveO &, U=boost::archive::detail::basic_oarchive ] d:\flow project\flowengine\3rdparty\include\boost\smart_cast.hpp(135) : see reference to function template instantiation 'T boost::smart_cast_impl::reference<T>::polymorphic::cast<U>(U &)' being compiled with [ T=FlowEngine::BinaryArchiveO &, U=boost::archive::detail::basic_oarchive ] d:\flow project\flowengine\3rdparty\include\boost\smart_cast.hpp(293) : see reference to function template instantiation 'T boost::smart_cast_impl::reference<T>::cast<U>(U &)' being compiled with [ T=FlowEngine::BinaryArchiveO &, U=boost::archive::detail::basic_oarchive ] d:\flow project\flowengine\3rdparty\include\boost\archive\detail\oserializer.hpp(149) : see reference to function template instantiation 'T boost::smart_cast_reference (U &)' being compiled with [ T=FlowEngine::BinaryArchiveO &, Archive=FlowEngine::BinaryArchiveO, U=boost::archive::detail::basic_oarchive ] d:\flow project\flowengine\3rdparty\include\boost\archive\detail\oserializer.hpp(145) : while compiling class template member function 'void boost::archive::detail::oserializer ::save_object_data(boost::archive::detail::basic_oarchive &,const void *) const' with [ Archive=FlowEngine::BinaryArchiveO, T=FlowEngine::Serializer ] On 1/11/07, Robert Ramey
wrote: you've included *.ipp files twice. Once in TextSerializer.h and again in in your instantiation. The *.ipp files shouldn't be in the TextSerializer.h header
Robert Ramey
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- Miguel Silvestre
-- Miguel Silvestre