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
75ffd978
Unverified
Commit
75ffd978
authored
Oct 25, 2022
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use gxrio internally for reading pdb files
parent
cfd5b7da
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
include/cif++/pdb/io.hpp
+1
-0
src/pdb/pdb2cif.cpp
+11
-0
No files found.
include/cif++/pdb/io.hpp
View file @
75ffd978
...
@@ -32,6 +32,7 @@ namespace cif::pdb
...
@@ -32,6 +32,7 @@ namespace cif::pdb
{
{
file
read
(
std
::
istream
&
is
);
file
read
(
std
::
istream
&
is
);
file
read
(
const
std
::
filesystem
::
path
&
file
);
void
write
(
std
::
ostream
&
os
,
const
datablock
&
db
);
void
write
(
std
::
ostream
&
os
,
const
datablock
&
db
);
...
...
src/pdb/pdb2cif.cpp
View file @
75ffd978
...
@@ -30,6 +30,7 @@
...
@@ -30,6 +30,7 @@
#include <stack>
#include <stack>
#include <cif++.hpp>
#include <cif++.hpp>
#include <gxrio.hpp>
#include <cif++/pdb/pdb2cif.hpp>
#include <cif++/pdb/pdb2cif.hpp>
#include <cif++/pdb/pdb2cif_remark_3.hpp>
#include <cif++/pdb/pdb2cif_remark_3.hpp>
...
@@ -6195,4 +6196,13 @@ file read(std::istream &is)
...
@@ -6195,4 +6196,13 @@ file read(std::istream &is)
return
result
;
return
result
;
}
}
file
read
(
const
std
::
filesystem
::
path
&
file
)
{
gxrio
::
ifstream
in
(
file
);
if
(
not
in
.
is_open
())
throw
std
::
runtime_error
(
"Could not open file "
+
file
.
string
()
+
" for input"
);
return
read
(
in
);
}
}
//
namespace
pdbx
}
//
namespace
pdbx
\ No newline at end of file
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