20#ifndef KICAD_ASSET_ARCHIVE_H
21#define KICAD_ASSET_ARCHIVE_H
24#include <unordered_map>
39 ASSET_ARCHIVE(
const wxString& aFilePath,
bool aLoadNow =
true );
52 long GetFileContents(
const wxString& aFilePath,
const unsigned char* aDest,
size_t aMaxLen );
60 long GetFilePointer(
const wxString& aFilePath,
const unsigned char** aDest );
KICAD_PLUGIN_EXPORT SCENEGRAPH * Load(char const *aFileName)
Read a model file and creates a generic display structure.
std::unordered_map< wxString, FILE_INFO > m_fileInfoCache
Cache of file info for a given file path.
long GetFileContents(const wxString &aFilePath, const unsigned char *aDest, size_t aMaxLen)
Retrieves a file with the given path from the cached archive.
long GetFilePointer(const wxString &aFilePath, const unsigned char **aDest)
Retrieves a pointer to a file with the given path from the cached archive.
wxString m_filePath
Path to the source archive file.
ASSET_ARCHIVE(const wxString &aFilePath, bool aLoadNow=true)
std::vector< unsigned char > m_cache
The full file contents.