added event , removed BinaryReader, correct some metods of CompoundFile

This commit is contained in:
Ivan Morozov
2022-07-20 00:35:15 +03:00
parent 274976815c
commit 26e21b5207
12 changed files with 180 additions and 140 deletions

View File

@ -7,7 +7,7 @@ using namespace CFCPP;
using RedBlackTree::RBTree;
CFStorage::CFStorage(std::shared_ptr<const CompoundFile> compFile, std::shared_ptr<IDirectoryEntry> dirEntry) :
CFStorage::CFStorage(std::shared_ptr<CompoundFile> compFile, std::shared_ptr<IDirectoryEntry> dirEntry) :
CFItem(compFile)
{
if (dirEntry == nullptr || dirEntry->getSid() < 0)
@ -62,7 +62,7 @@ std::shared_ptr<CFStream> CFStorage::AddStream(const std::wstring& streamName)
throw new CFDuplicatedItemException(L"An entry with name '" + streamName + L"' is already present in storage '" + Name() + L"' ");
}
return std::shared_ptr<CFStream> (new CFStream(compoundFile, dirEntry));
return std::shared_ptr<CFStream>(new CFStream(compoundFile, dirEntry));
}
std::shared_ptr<CFStream> CFStorage::GetStream(const std::wstring& streamName)