The Gnome Chemistry Utils
0.14.0
Main Page
Namespaces
Classes
Files
File List
File Members
libs
gcp
gcp/residue.h
Go to the documentation of this file.
1
// -*- C++ -*-
2
3
/*
4
* GChemPaint library
5
* residue.h
6
*
7
* Copyright (C) 2007-2008 Jean Bréfort <jean.brefort@normalesup.org>
8
*
9
* This program is free software; you can redistribute it and/or
10
* modify it under the terms of the GNU General Public License as
11
* published by the Free Software Foundation; either version 3 of the
12
* License, or (at your option) any later version.
13
*
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU General Public License for more details.
18
*
19
* You should have received a copy of the GNU General Public License
20
* along with this program; if not, write to the Free Software
21
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
22
* USA
23
*/
24
25
#ifndef GCP_RESIDUE_H
26
#define GCP_RESIDUE_H
27
28
#include <
gcu/macros.h
>
29
#include <
gcu/residue.h
>
30
32
namespace
gcp
33
{
34
35
class
Application;
36
class
Document;
37
class
Molecule;
38
44
class
Residue
:
public
gcu::Residue
45
{
46
public
:
50
Residue
();
56
Residue
(
char
const
*name);
65
Residue
(
char
const
*name,
char
const
*symbol,
Molecule
*mol,
Document
*doc);
69
virtual
~Residue
();
70
79
void
Load
(xmlNodePtr node,
bool
ro,
gcu::Application
*app);
86
bool
operator==
(
gcu::Molecule
const
&mol)
const
;
90
void
Register
();
94
void
Ref
();
98
void
Unref
();
99
107
static
void
SetPostAddCallback
(
void
(*cb) (
Residue
*res)) {m_AddCb = cb;}
108
109
private
:
110
static
void (*m_AddCb) (
Residue
*res);
111
115
GCU_RO_PROP
(
bool
, ReadOnly);
119
GCU_RO_PROP
(xmlNodePtr, Node);
123
GCU_RO_PROP
(xmlNodePtr, MolNode);
128
GCU_RO_PROP
(
unsigned
, Refs);
129
};
130
131
}
// namespace gcp
132
133
#endif // GCP_RESIDUE_H
134
Generated on Tue Jan 1 2013 22:29:23 for The Gnome Chemistry Utils by
1.8.1.2