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
1a997c0a
There was an error fetching the commit references. Please try again later.
Commit
1a997c0a
authored
13 years ago
by
ilor
Browse files
Options
Downloads
Patches
Plain Diff
binary-incompatible change: add virtual void validate() to TokenReader. Bump ver to 1.0.10
parent
7f90d72b
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libcorpus2/CMakeLists.txt
+1
-1
1 addition, 1 deletion
libcorpus2/CMakeLists.txt
libcorpus2/io/reader.h
+8
-0
8 additions, 0 deletions
libcorpus2/io/reader.h
with
9 additions
and
1 deletion
libcorpus2/CMakeLists.txt
+
1
−
1
View file @
1a997c0a
...
@@ -3,7 +3,7 @@ PROJECT(corpus2)
...
@@ -3,7 +3,7 @@ PROJECT(corpus2)
set
(
corpus2_ver_major
"1"
)
set
(
corpus2_ver_major
"1"
)
set
(
corpus2_ver_minor
"0"
)
set
(
corpus2_ver_minor
"0"
)
set
(
corpus2_ver_patch
"
9
"
)
set
(
corpus2_ver_patch
"
10
"
)
if
(
NOT LIBCORPUS2_SRC_DATA_DIR
)
if
(
NOT LIBCORPUS2_SRC_DATA_DIR
)
...
...
This diff is collapsed.
Click to expand it.
libcorpus2/io/reader.h
+
8
−
0
View file @
1a997c0a
...
@@ -101,6 +101,12 @@ public:
...
@@ -101,6 +101,12 @@ public:
*/
*/
virtual
std
::
string
get_option
(
const
std
::
string
&
option
)
const
;
virtual
std
::
string
get_option
(
const
std
::
string
&
option
)
const
;
/**
* Check if the reader is valid, should throw if not. Called after
* all set_options during factory reader creation.
*/
virtual
void
validate
()
{}
/**
/**
* Tagset accesor
* Tagset accesor
*/
*/
...
@@ -221,6 +227,7 @@ T* stream_reader_creator(const Tagset& tagset, std::istream& is,
...
@@ -221,6 +227,7 @@ T* stream_reader_creator(const Tagset& tagset, std::istream& is,
foreach
(
const
string_range
&
sr
,
params
)
{
foreach
(
const
string_range
&
sr
,
params
)
{
reader
->
set_option
(
boost
::
copy_range
<
std
::
string
>
(
sr
));
reader
->
set_option
(
boost
::
copy_range
<
std
::
string
>
(
sr
));
}
}
reader
->
validate
();
return
reader
;
return
reader
;
}
}
...
@@ -236,6 +243,7 @@ T* path_reader_creator(const Tagset& tagset, const std::string& path,
...
@@ -236,6 +243,7 @@ T* path_reader_creator(const Tagset& tagset, const std::string& path,
foreach
(
const
string_range
&
sr
,
params
)
{
foreach
(
const
string_range
&
sr
,
params
)
{
reader
->
set_option
(
boost
::
copy_range
<
std
::
string
>
(
sr
));
reader
->
set_option
(
boost
::
copy_range
<
std
::
string
>
(
sr
));
}
}
reader
->
validate
();
return
reader
;
return
reader
;
}
}
...
...
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