Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
libcifpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
libcifpp
Commits
0dc19e86
Unverified
Commit
0dc19e86
authored
Aug 11, 2022
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed example
parent
a12acaa5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
3 deletions
+15
-3
libcifpp.pc.in
+1
-1
src/cif/file.cpp
+14
-0
src/cif/validate.cpp
+0
-2
No files found.
libcifpp.pc.in
View file @
0dc19e86
...
@@ -8,5 +8,5 @@ Name: libcifpp
...
@@ -8,5 +8,5 @@ Name: libcifpp
Description:
C++
library
for
the
manipulation
of
mmCIF
files
.
Description:
C++
library
for
the
manipulation
of
mmCIF
files
.
Version:
@PACKAGE_VERSION@
Version:
@PACKAGE_VERSION@
Libs:
-L$
{
libdir
}
-lcifpp
-lboost_regex
-l
boost_iostreams
Libs:
-L$
{
libdir
}
-lcifpp
-lboost_regex
-l
z
Cflags:
-I$
{
includedir
}
-pthread
Cflags:
-I$
{
includedir
}
-pthread
src/cif/file.cpp
View file @
0dc19e86
...
@@ -130,6 +130,20 @@ std::tuple<file::iterator, bool> file::emplace(std::string_view name)
...
@@ -130,6 +130,20 @@ std::tuple<file::iterator, bool> file::emplace(std::string_view name)
return
std
::
make_tuple
(
begin
(),
is_new
);
return
std
::
make_tuple
(
begin
(),
is_new
);
}
}
void
file
::
load
(
const
std
::
filesystem
::
path
&
p
)
{
if
(
p
.
extension
()
==
".gz"
)
{
gzstream
::
ifstream
in
(
p
);
load
(
in
);
}
else
{
std
::
ifstream
in
(
p
,
std
::
ios
::
binary
);
load
(
in
);
}
}
void
file
::
load
(
std
::
istream
&
is
)
void
file
::
load
(
std
::
istream
&
is
)
{
{
auto
saved
=
m_validator
;
auto
saved
=
m_validator
;
...
...
src/cif/validate.cpp
View file @
0dc19e86
...
@@ -420,8 +420,6 @@ const validator &validator_factory::operator[](std::string_view dictionary_name)
...
@@ -420,8 +420,6 @@ const validator &validator_factory::operator[](std::string_view dictionary_name)
throw
std
::
runtime_error
(
"Dictionary not found or defined ("
+
dictionary
.
string
()
+
")"
);
throw
std
::
runtime_error
(
"Dictionary not found or defined ("
+
dictionary
.
string
()
+
")"
);
}
}
assert
(
iequals
(
m_validators
.
back
().
name
(),
dictionary_name
));
return
m_validators
.
back
();
return
m_validators
.
back
();
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment