Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
corpus2
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Analysers
corpus2
Commits
81d7a1fe
Commit
81d7a1fe
authored
13 years ago
by
Paweł Kędzia
Browse files
Options
Downloads
Patches
Plain Diff
Added typedef for boost::shared_ptr<TokenWriter>
parent
c8b4e9aa
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libcorpus2/io/writer.h
+5
-4
5 additions, 4 deletions
libcorpus2/io/writer.h
with
5 additions
and
4 deletions
libcorpus2/io/writer.h
+
5
−
4
View file @
81d7a1fe
...
@@ -30,6 +30,7 @@ namespace Corpus2 {
...
@@ -30,6 +30,7 @@ namespace Corpus2 {
class
TokenWriter
class
TokenWriter
{
{
public:
public:
typedef
boost
::
shared_ptr
<
TokenWriter
>
TokenWriterPtr
;
/**
/**
* Constructor. A TokenWriter operates within a tagset, outputs data
* Constructor. A TokenWriter operates within a tagset, outputs data
* to a stream and may have some options passed.
* to a stream and may have some options passed.
...
@@ -69,7 +70,7 @@ public:
...
@@ -69,7 +70,7 @@ public:
* @param os the output stream to pass to the writer's constructor
* @param os the output stream to pass to the writer's constructor
* @param tagset the tagset to pass to the writer's constructor
* @param tagset the tagset to pass to the writer's constructor
*/
*/
static
boost
::
shared_ptr
<
TokenWriter
>
create_stream_writer
(
const
std
::
string
&
class_id
,
static
TokenWriter
Ptr
create_stream_writer
(
const
std
::
string
&
class_id
,
std
::
ostream
&
os
,
std
::
ostream
&
os
,
const
Tagset
&
tagset
,
const
Tagset
&
tagset
,
const
string_range_vector
&
params
);
const
string_range_vector
&
params
);
...
@@ -81,7 +82,7 @@ public:
...
@@ -81,7 +82,7 @@ public:
* is called. Parameters are expected to be comma-separated from the
* is called. Parameters are expected to be comma-separated from the
* class id.
* class id.
*/
*/
static
boost
::
shared_ptr
<
TokenWriter
>
create_stream_writer
(
const
std
::
string
&
class_id_params
,
static
TokenWriter
Ptr
create_stream_writer
(
const
std
::
string
&
class_id_params
,
std
::
ostream
&
os
,
std
::
ostream
&
os
,
const
Tagset
&
tagset
);
const
Tagset
&
tagset
);
...
@@ -97,7 +98,7 @@ public:
...
@@ -97,7 +98,7 @@ public:
* @param path file to write to
* @param path file to write to
* @param tagset the tagset to pass to the writer's constructor
* @param tagset the tagset to pass to the writer's constructor
*/
*/
static
boost
::
shared_ptr
<
TokenWriter
>
create_path_writer
(
const
std
::
string
&
class_id
,
static
TokenWriter
Ptr
create_path_writer
(
const
std
::
string
&
class_id
,
const
std
::
string
&
path
,
const
std
::
string
&
path
,
const
Tagset
&
tagset
,
const
Tagset
&
tagset
,
const
string_range_vector
&
params
);
const
string_range_vector
&
params
);
...
@@ -111,7 +112,7 @@ public:
...
@@ -111,7 +112,7 @@ public:
*
*
* This is the file path (as opposed to output stream) version.
* This is the file path (as opposed to output stream) version.
*/
*/
static
boost
::
shared_ptr
<
TokenWriter
>
create_path_writer
(
const
std
::
string
&
class_id_params
,
static
TokenWriter
Ptr
create_path_writer
(
const
std
::
string
&
class_id_params
,
const
std
::
string
&
path
,
const
std
::
string
&
path
,
const
Tagset
&
tagset
);
const
Tagset
&
tagset
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment