OpenStructure
chain_type.hh
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 // This file is part of the OpenStructure project <www.openstructure.org>
3 //
4 // Copyright (C) 2008-2020 by the OpenStructure authors
5 //
6 // This library is free software; you can redistribute it and/or modify it under
7 // the terms of the GNU Lesser General Public License as published by the Free
8 // Software Foundation; either version 3.0 of the License, or (at your option)
9 // any later version.
10 // This library is distributed in the hope that it will be useful, but WITHOUT
11 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 // FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13 // details.
14 //
15 // You should have received a copy of the GNU Lesser General Public License
16 // along with this library; if not, write to the Free Software Foundation, Inc.,
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 //------------------------------------------------------------------------------
19 #ifndef OST_CHAIN_TYPE_HH
20 #define OST_CHAIN_TYPE_HH
21 
22 #include <ost/mol/module_config.hh>
23 #include <ost/base.hh>
24 #include <ost/string_ref.hh>
25 
26 #include "module_config.hh"
27 
28 namespace ost { namespace mol {
29 
33 // _entity_poly.type, which is more detailed. As a result it is not a 1:1
34 // mapping and cannot be used to to read/write mmCIF entity types accurately.
35 
36 typedef enum {
48  // new chain types
57 
65 
73 
81 
98 
120 
130 
131 }} //ns
132 
133 #endif
convenient datatype for referencing character data
Definition: string_ref.hh:39
std::string String
Definition: base.hh:54
#define DLLEXPORT_OST_MOL
String DLLIMPORT BranchedTypeFromChainType(ChainType type)
Return pdbx_entity_branch.type consistent with mmCIF dictionary (mmcif_pdbx_v50):
String DLLIMPORT EntityTypeFromChainType(ChainType type)
Return _entity.type consistent with respective mmCIF vocabulary (mmcif_pdbx_v50):
@ CHAINTYPE_WATER
water
Definition: chain_type.hh:39
@ CHAINTYPE_POLY_RN
polyribonucleotide
Definition: chain_type.hh:43
@ CHAINTYPE_CYCLIC_PSEUDO_PEPTIDE
cyclic-pseudo-peptide
Definition: chain_type.hh:50
@ CHAINTYPE_NON_POLY
non-polymer
Definition: chain_type.hh:38
@ CHAINTYPE_POLY_PEPTIDE_DN_RN
peptide nucleic acid
Definition: chain_type.hh:51
@ CHAINTYPE_POLY_SAC_L
polysaccharide(L)
Definition: chain_type.hh:45
@ CHAINTYPE_BRANCHED
carbohydrate
Definition: chain_type.hh:52
@ CHAINTYPE_OLIGOSACCHARIDE
Definition: chain_type.hh:53
@ CHAINTYPE_POLY_SAC_D
polysaccharide(D)
Definition: chain_type.hh:44
@ CHAINTYPE_POLY_PEPTIDE_L
(L) amino acid sequence
Definition: chain_type.hh:41
@ CHAINTYPE_N_CHAINTYPES
no. of chain types
Definition: chain_type.hh:55
@ CHAINTYPE_POLY_DN
polydeoxyribonucleotide
Definition: chain_type.hh:42
@ CHAINTYPE_POLY
polymer
Definition: chain_type.hh:37
@ CHAINTYPE_POLY_PEPTIDE_D
(D) amino acid sequence
Definition: chain_type.hh:40
@ CHAINTYPE_UNKNOWN
guess what
Definition: chain_type.hh:47
@ CHAINTYPE_MACROLIDE
macrolide
Definition: chain_type.hh:49
@ CHAINTYPE_POLY_DN_RN
polydeoxyribonucleotide/ -ribonucleotide hybrid
Definition: chain_type.hh:46
ChainType DLLIMPORT ChainTypeFromString(const StringRef identifier)
Create a ChainType item for a given string.
String DLLIMPORT EntityPolyTypeFromChainType(ChainType type)
Return _entity_poly.type consistent with mmCIF dictionary (mmcif_pdbx_v50):
String DLLIMPORT StringFromChainType(ChainType type)
Return the String identifier for a given type.
Definition: base.dox:1