OpenStructure
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
stage
include
ost
mol
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-2011 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
31
typedef
enum
{
32
CHAINTYPE_POLY
,
33
CHAINTYPE_NON_POLY
,
34
CHAINTYPE_WATER
,
35
CHAINTYPE_POLY_PEPTIDE_D
,
36
CHAINTYPE_POLY_PEPTIDE_L
,
37
CHAINTYPE_POLY_DN
,
38
CHAINTYPE_POLY_RN
,
39
CHAINTYPE_POLY_SAC_D
,
40
CHAINTYPE_POLY_SAC_L
,
41
CHAINTYPE_POLY_DN_RN
,
42
CHAINTYPE_UNKNOWN
,
43
// new chain types
44
CHAINTYPE_MACROLIDE
,
45
CHAINTYPE_CYCLIC_PSEUDO_PEPTIDE
,
46
CHAINTYPE_POLY_PEPTIDE_DN_RN
,
47
CHAINTYPE_N_CHAINTYPES
48
}
ChainType
;
49
56
ChainType
DLLEXPORT_OST_MOL
ChainTypeFromString
(
const
StringRef
identifier);
57
64
ChainType
DLLEXPORT_OST_MOL
ChainTypeFromString
(
const
String
& identifier);
65
72
String
DLLEXPORT_OST_MOL
StringFromChainType
(
ChainType
type);
73
74
}}
//ns
75
76
#endif
ost::StringRef
convenient datatype for referencing character data
Definition:
string_ref.hh:39
string_ref.hh
ost::mol::ChainTypeFromString
ChainType DLLIMPORT ChainTypeFromString(const StringRef identifier)
Create a ChainType item for a given string.
ost::mol::ChainType
ChainType
Definition:
chain_type.hh:31
String
std::string String
Definition:
base.hh:54
ost::mol::CHAINTYPE_POLY_SAC_L
polysaccharide(L)
Definition:
chain_type.hh:40
ost::mol::StringFromChainType
String DLLIMPORT StringFromChainType(ChainType type)
Return the String identifier for a given type.
ost::mol::CHAINTYPE_CYCLIC_PSEUDO_PEPTIDE
cyclic-pseudo-peptide
Definition:
chain_type.hh:45
ost::mol::CHAINTYPE_UNKNOWN
guess what
Definition:
chain_type.hh:42
module_config.hh
ost::mol::CHAINTYPE_POLY_PEPTIDE_D
(D) amino acid sequence
Definition:
chain_type.hh:35
ost::mol::CHAINTYPE_POLY
polymer
Definition:
chain_type.hh:32
ost::mol::CHAINTYPE_MACROLIDE
macrolide
Definition:
chain_type.hh:44
ost::mol::CHAINTYPE_POLY_DN
polydeoxyribonucleotide
Definition:
chain_type.hh:37
DLLEXPORT_OST_MOL
#define DLLEXPORT_OST_MOL
Definition:
module_config.hh:28
ost::mol::CHAINTYPE_N_CHAINTYPES
no. of chain types
Definition:
chain_type.hh:47
ost::mol::CHAINTYPE_POLY_RN
polyribonucleotide
Definition:
chain_type.hh:38
ost::mol::CHAINTYPE_WATER
water
Definition:
chain_type.hh:34
ost::mol::CHAINTYPE_POLY_SAC_D
polysaccharide(D)
Definition:
chain_type.hh:39
ost::mol::CHAINTYPE_POLY_PEPTIDE_DN_RN
peptide nucleic acid
Definition:
chain_type.hh:46
ost::mol::CHAINTYPE_NON_POLY
non-polymer
Definition:
chain_type.hh:33
base.hh
ost::mol::CHAINTYPE_POLY_DN_RN
polydeoxyribonucleotide/ -ribonucleotide hybrid
Definition:
chain_type.hh:41
ost::mol::CHAINTYPE_POLY_PEPTIDE_L
(L) amino acid sequence
Definition:
chain_type.hh:36
Generated by
1.8.5