28 using System.Collections.Generic;
 
   30 using System.Reflection;
 
   34 using OpenSim.Framework;
 
   35 using OpenSim.Framework.Serialization;
 
   44         private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
 
   49         protected static int LOG_ASSET_LOAD_NOTIFICATION_INTERVAL = 50;
 
   60             m_archiveWriter = archiveWriter;
 
  128             string extension = string.Empty;
 
  132                 extension = ArchiveConstants.ASSET_TYPE_TO_EXTENSION[asset.Type];
 
  137                     "[ARCHIVER]: Unrecognized asset type {0} with uuid {1}.  This asset will be saved but not reloaded",
 
  138                     asset.Type, asset.ID);
 
  141             m_archiveWriter.WriteFile(
 
  142                 ArchiveConstants.ASSETS_PATH + asset.FullID.ToString() + extension,
 
  149             if (m_assetsWritten % LOG_ASSET_LOAD_NOTIFICATION_INTERVAL == 0)
 
  150                 m_log.InfoFormat(
"[ARCHIVER]: Added {0} assets to archive", m_assetsWritten);
 
static readonly IDictionary< sbyte, string > ASSET_TYPE_TO_EXTENSION
 
AssetsArchiver(TarArchiveWriter archiveWriter)
 
Constants for the archiving module 
 
TarArchiveWriter m_archiveWriter
 
sbyte Type
(sbyte) AssetType enum 
 
Temporary code to produce a tar archive in tar v7 format 
 
Asset class. All Assets are reference by this class or a class derived from this class ...
 
void WriteAsset(AssetBase asset)
Archive the assets given to this archiver to the given archive. 
 
void WriteData(AssetBase asset)
Write an assets metadata file to the given archive