mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-21 11:00:49 +08:00
git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@53593 954022d7-b5bf-4e40-9824-e11837661b57
43 lines
762 B
C++
43 lines
762 B
C++
|
|
// auto inserted precompiled begin
|
|
#include "precompiled_xml.h"
|
|
// auto inserted precompiled end
|
|
|
|
#include "XWFileSource.h"
|
|
#include "Exception\not_implement.h"
|
|
|
|
|
|
namespace XML
|
|
{
|
|
namespace Private
|
|
{
|
|
|
|
XWFileSource::XWFileSource(const boost::filesystem::path& path, XWideSource::eSourceType type)
|
|
: m_stream(path.string().c_str())
|
|
, XWideSource(type)
|
|
{
|
|
setBegin();
|
|
}
|
|
|
|
|
|
XWFileSource::XWFileSource(const boost::filesystem::wpath& path, XWideSource::eSourceType type)
|
|
: m_stream(path.string().c_str())
|
|
, XWideSource(type)
|
|
{
|
|
setBegin();
|
|
}
|
|
|
|
|
|
XWFileSource::~XWFileSource()
|
|
{
|
|
}
|
|
|
|
|
|
void XWFileSource::setBegin()
|
|
{
|
|
m_iterator = m_stream;
|
|
}
|
|
|
|
|
|
} // namespace Private
|
|
} // namespace XML
|