2 * Copyright 2011, Oliver Tappe <zooey@hirschkaefer.de>
3 * Distributed under the terms of the MIT License.
7 #include <package/hpkg/RepositoryReader.h>
11 #include <package/hpkg/ErrorOutput.h>
12 #include <package/hpkg/RepositoryContentHandler.h>
13 #include <package/hpkg/RepositoryReaderImpl.h>
16 namespace BPackageKit
{
21 BRepositoryReader::BRepositoryReader(BErrorOutput
* errorOutput
)
23 fImpl(new (std::nothrow
) RepositoryReaderImpl(errorOutput
))
28 BRepositoryReader::~BRepositoryReader()
35 BRepositoryReader::Init(const char* fileName
)
40 return fImpl
->Init(fileName
);
45 BRepositoryReader::ParseContent(BRepositoryContentHandler
* contentHandler
)
50 return fImpl
->ParseContent(contentHandler
);
56 } // namespace BPackageKit