add part of class CFStorage

This commit is contained in:
Ivan Morozov
2022-07-11 19:14:14 +03:00
parent 1ce32462e0
commit f78048d617
11 changed files with 194 additions and 28 deletions

12
Common/cppcf/cfstream.cpp Normal file
View File

@ -0,0 +1,12 @@
#include "cfstream.h"
#include "cfexception.h"
CFCPP::CFStream::CFStream(std::shared_ptr<CompoundFile> compFile, std::shared_ptr<IDirectoryEntry> dirEntry) :
CFItem(compFile)
{
if (dirEntry == nullptr || dirEntry->getSid() < 0)
throw new CFException("Attempting to create a CFStorage using an unitialized directory");
this->dirEntry = dirEntry;
}