Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
		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));
		}
Ejemplo n.º 3
0
void wxFrameManager::SaveViewsNow()
{
#if 0
    if ( mSettingsFile == "" ) return;

    wxIOStreamWrapper stm;
    stm.CreateForOutput( mSettingsFile );

    mStore.SetDataStream( stm );
    DoSerialize( mStore );
#endif
}
Ejemplo n.º 4
0
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));
}
Ejemplo n.º 6
0
		void addObject(const Str&, const T&v)
		{
			DoSerialize(*this, v);
		}