Skip to content
Snippets Groups Projects
Commit b402146a authored by Paweł Kędzia's avatar Paweł Kędzia
Browse files

Added typedef for boost::shared_ptr<TokenReader>

parent 81d7a1fe
Branches
No related merge requests found
......@@ -36,6 +36,8 @@ namespace Corpus2 {
class TokenReader : public TokenSource
{
public:
typedef boost::shared_ptr<TokenReader> TokenReaderPtr;
/// Constructor --- only a Tagset is needed
explicit TokenReader(const Tagset& tagset);
......@@ -46,7 +48,7 @@ public:
*
* Any files open will be closed by the reader.
*/
static boost::shared_ptr<TokenReader> create_path_reader(
static TokenReaderPtr create_path_reader(
const std::string& class_id,
const Tagset& tagset,
const std::string& path);
......@@ -59,7 +61,7 @@ public:
* which is beyond what this interface allows). Attempting to create a
* reader that can not read a stream will result in an exception.
*/
static boost::shared_ptr<TokenReader> create_stream_reader(
static TokenReaderPtr create_stream_reader(
const std::string& class_id,
const Tagset& tagset,
std::istream& stream);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment