Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
WCCL
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
WCCL
Commits
1fc43529
Commit
1fc43529
authored
13 years ago
by
Adam Wardynski
Browse files
Options
Downloads
Patches
Plain Diff
Update string repr of WcclFile with imports section.
parent
8aa47d3a
Branches
Branches containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libwccl/wcclfile.cpp
+6
-0
6 additions, 0 deletions
libwccl/wcclfile.cpp
libwccl/wcclfile.h
+7
-0
7 additions, 0 deletions
libwccl/wcclfile.h
with
13 additions
and
0 deletions
libwccl/wcclfile.cpp
+
6
−
0
View file @
1fc43529
...
...
@@ -38,6 +38,12 @@ boost::shared_ptr<const TagRuleSequence> WcclFile::get_tag_rules_ptr() const
std
::
ostream
&
WcclFile
::
write_to
(
std
::
ostream
&
os
)
const
{
if
(
has_lexicons
())
{
foreach
(
const
Lexicons
::
map_t
::
value_type
&
v
,
lexicons_
->
get_lexicons
())
{
os
<<
"import(
\"
"
<<
v
.
second
->
file_name
()
<<
",
\"
"
<<
v
.
second
->
name
()
<<
"
\"
)
\n
"
;
}
}
foreach
(
const
boost
::
shared_ptr
<
FunctionalOpSequence
>&
s
,
all_sections_
)
{
os
<<
s
->
to_string
(
tagset_
)
<<
'\n'
;
}
...
...
This diff is collapsed.
Click to expand it.
libwccl/wcclfile.h
+
7
−
0
View file @
1fc43529
...
...
@@ -77,6 +77,7 @@ public:
void
import_lexicon
(
const
boost
::
shared_ptr
<
Lexicon
>&
lexicon
);
bool
has_lexicon
(
const
std
::
string
&
name
)
const
;
bool
has_lexicons
()
const
;
boost
::
shared_ptr
<
const
Lexicon
>
get_lexicon_ptr
(
const
std
::
string
&
name
)
const
;
const
Lexicon
&
get_lexicon
(
const
std
::
string
&
name
)
const
;
boost
::
shared_ptr
<
const
Lexicons
>
get_lexicons_ptr
()
const
;
...
...
@@ -307,6 +308,12 @@ bool WcclFile::has_lexicon(const std::string& name) const
return
lexicons_
->
has_lexicon
(
name
);
}
inline
bool
WcclFile
::
has_lexicons
()
const
{
return
lexicons_
;
}
inline
boost
::
shared_ptr
<
const
Lexicon
>
WcclFile
::
get_lexicon_ptr
(
const
std
::
string
&
name
)
const
{
...
...
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