Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
openstructure
Commits
fcf35bff
Commit
fcf35bff
authored
1 year ago
by
Studer Gabriel
Browse files
Options
Downloads
Patches
Plain Diff
silence compiler warnings
parent
e350a7e9
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/mol/base/src/chain_type.cc
+15
-10
15 additions, 10 deletions
modules/mol/base/src/chain_type.cc
with
15 additions
and
10 deletions
modules/mol/base/src/chain_type.cc
+
15
−
10
View file @
fcf35bff
...
...
@@ -138,11 +138,13 @@ String EntityTypeFromChainType(ChainType type) {
case
ost
::
mol
::
CHAINTYPE_POLY_PEPTIDE_DN_RN
:
return
"polymer"
;
case
ost
::
mol
::
CHAINTYPE_BRANCHED
:
return
"branched"
;
case
ost
::
mol
::
CHAINTYPE_OLIGOSACCHARIDE
:
return
"branched"
;
default:
{
std
::
stringstream
ss
;
ss
<<
"Unknown ChainType item found: '"
<<
type
<<
"'!"
;
throw
Error
(
ss
.
str
());
}
}
std
::
stringstream
ss
(
"Unknown ChainType item found: '"
);
ss
<<
type
<<
"'!"
;
throw
Error
(
ss
.
str
());
}
String
EntityPolyTypeFromChainType
(
ChainType
type
)
{
...
...
@@ -157,22 +159,25 @@ String EntityPolyTypeFromChainType(ChainType type) {
case
ost
::
mol
::
CHAINTYPE_POLY_DN_RN
:
return
"polydeoxyribonucleotide/polyribonucleotide hybrid"
;
case
ost
::
mol
::
CHAINTYPE_CYCLIC_PSEUDO_PEPTIDE
:
return
"cyclic-pseudo-peptide"
;
case
ost
::
mol
::
CHAINTYPE_POLY_PEPTIDE_DN_RN
:
return
"peptide nucleic acid"
;
default:
{
std
::
stringstream
ss
;
ss
<<
"Cannot return entity poly type from chain of type: '"
<<
type
<<
"'!"
;
throw
Error
(
ss
.
str
());
}
}
std
::
stringstream
ss
(
"Cannot return entity poly type from chain of type: '"
);
ss
<<
type
<<
"'!"
;
throw
Error
(
ss
.
str
());
}
String
BranchedTypeFromChainType
(
ChainType
type
)
{
switch
(
type
)
{
case
ost
::
mol
::
CHAINTYPE_BRANCHED
:
return
"oligosaccharide"
;
// the only one
case
ost
::
mol
::
CHAINTYPE_OLIGOSACCHARIDE
:
return
"oligosaccharide"
;
default:
{
std
::
stringstream
ss
;
ss
<<
"Cannot return branched type from chain of type: '"
<<
type
<<
"'!"
;
throw
Error
(
ss
.
str
());
}
}
std
::
stringstream
ss
(
"Cannot return branched type from chain of type: '"
);
ss
<<
type
<<
"'!"
;
throw
Error
(
ss
.
str
());
}
}}
//ns
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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