From b402146a3ed9c0e11d2c25fe29fb94cc9a4f37c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20K=C4=99dzia?= <pawel.kedzia@pwr.wroc.pl> Date: Tue, 26 Apr 2011 14:38:36 +0200 Subject: [PATCH] Added typedef for boost::shared_ptr<TokenReader> --- libcorpus2/io/reader.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libcorpus2/io/reader.h b/libcorpus2/io/reader.h index cc89b4b..417497d 100644 --- a/libcorpus2/io/reader.h +++ b/libcorpus2/io/reader.h @@ -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); -- GitLab