mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-20 00:03:33 +08:00
add part of class CFStorage
This commit is contained in:
12
Common/cppcf/cfstream.cpp
Normal file
12
Common/cppcf/cfstream.cpp
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user