diff options
| author | jhurst <jhurst@cinecert.com> | 2008-10-06 04:50:09 +0000 |
|---|---|---|
| committer | jhurst <> | 2008-10-06 04:50:09 +0000 |
| commit | dfed1be13fa82afc6de9f62822e963dec0f4a25a (patch) | |
| tree | 351cf9c4eafadc0c502349fae6b509db838c7142 /src/KM_fileio.h | |
| parent | 34b0ba8aa56c902a013f7ac799e1f64fb31b0a5c (diff) | |
easy marshalling for IArchive
Diffstat (limited to 'src/KM_fileio.h')
| -rwxr-xr-x | src/KM_fileio.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/KM_fileio.h b/src/KM_fileio.h index 1376716..ceeb8eb 100755 --- a/src/KM_fileio.h +++ b/src/KM_fileio.h @@ -206,6 +206,14 @@ namespace Kumu // Writes a string to a file, overwrites the existing file if present. Result_t WriteStringIntoFile(const char* filename, const std::string& inString); + // Instant IO for archivable objects + // + // Unarchives a file into an object + Result_t ReadFileIntoObject(const std::string& Filename, IArchive& Object, ui32_t max_size = 8 * Kumu::Megabyte); + + // Archives an object into a file + Result_t WriteObjectIntoFile(const IArchive& Object, const std::string& Filename); + // class FileReader { |
