Antares Xpansion
Investment simulations for Antares studies
Loading...
Searching...
No Matches
ArchiveWriter Class Reference
Inheritance diagram for ArchiveWriter:
ArchiveIO

Public Member Functions

 ArchiveWriter (const std::filesystem::path &archivePath)
 
int32_t Close () override
 
void Delete () override
 
int32_t CloseUnsafe ()
 Close the archive Not thread safe Meant to be used with DeleteUnsafe and both of them guarded by a single mutex to prevent concurrency issues between Close() and Delete()
 
void DeleteUnsafe ()
 Delete the archive Not thread safe Meant to be used with CloseUnsafe and both of them guarded by a single mutex to prevent concurrency issues between Close() and Delete()
 
int Open () override
 
void InitFileInfo ()
 
int32_t AddFileInArchive (const FileBuffer &FileBufferToAdd)
 
int32_t AddFileInArchive (const std::filesystem::path &FileToAdd)
 
int32_t AddPathInArchive (const std::filesystem::path &path_to_add, const std::filesystem::path &root_path)
 
void * InternalPointer () const override
 
- Public Member Functions inherited from ArchiveIO
 ArchiveIO (const std::filesystem::path &archivePath)
 
std::filesystem::path ArchivePath () const
 
void SetArchivePath (const std::filesystem::path &archivePath)
 

Additional Inherited Members

- Protected Member Functions inherited from ArchiveIO
- Protected Attributes inherited from ArchiveIO
std::shared_mutex mutex_
 

Member Function Documentation

◆ Close()

int32_t ArchiveWriter::Close ( )
overridevirtual

Implements ArchiveIO.

◆ CloseUnsafe()

int32_t ArchiveWriter::CloseUnsafe ( )

Close the archive Not thread safe Meant to be used with DeleteUnsafe and both of them guarded by a single mutex to prevent concurrency issues between Close() and Delete()

Returns
int32_t

◆ Delete()

void ArchiveWriter::Delete ( )
overridevirtual

Implements ArchiveIO.

◆ DeleteUnsafe()

void ArchiveWriter::DeleteUnsafe ( )

Delete the archive Not thread safe Meant to be used with CloseUnsafe and both of them guarded by a single mutex to prevent concurrency issues between Close() and Delete()

Returns
int32_t

◆ InternalPointer()

void * ArchiveWriter::InternalPointer ( ) const
inlineoverridevirtual

Implements ArchiveIO.

◆ Open()

int32_t ArchiveWriter::Open ( )
overridevirtual

Implements ArchiveIO.


The documentation for this class was generated from the following files: