std::unique_ptr<ElVis::Serialization::RenderModule> RenderModule::Serialize() const { auto pResult = std::unique_ptr<ElVis::Serialization::RenderModule>(new ElVis::Serialization::RenderModule()); pResult->set_enabled(m_enabled); DoSerialize(pResult); return pResult; }
void Deserialize(T& obj) { Spry::IO::BinaryReader reader(BaseStream); Internal::BinaryReaderContext<Spry::IO::BinaryReader> context(reader); DoSerialize(context, const_cast<Spry::Metaprogramming::TypeTraits<T>::NonConstType&>(obj)); }
void wxFrameManager::SaveViewsNow() { #if 0 if ( mSettingsFile == "" ) return; wxIOStreamWrapper stm; stm.CreateForOutput( mSettingsFile ); mStore.SetDataStream( stm ); DoSerialize( mStore ); #endif }
bool wxFrameManager::ReloadViews() { return false; // TBD: ???? #if 0 if ( mSettingsFile == "" || !wxFileExists( mSettingsFile ) ) return false; DestroyViews(); wxIOStreamWrapper stm; stm.CreateForInput( mSettingsFile ); mStore.SetDataStream( stm ); DoSerialize( mStore ); return true; #endif }
/// Saves a Power Tab object to a Power Tab output stream /// @param stream Power Tab output stream to save to /// @return True if the object was saved, false if not bool PowerTabObject::Serialize(PowerTabOutputStream& stream) { //------Last Checked------// // - Dec 27, 2004 return (DoSerialize(stream)); }
void addObject(const Str&, const T&v) { DoSerialize(*this, v); }