Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

crystalcleavage.h

00001 // -*- C++ -*-
00002 
00003 /* 
00004  * Gnome Chemisty Utils
00005  * crystalcleavage.h 
00006  *
00007  * Copyright (C) 2002-2004
00008  *
00009  * Developed by Jean Bréfort <jean.brefort@normalesup.org>
00010  *
00011  * This program is free software; you can redistribute it and/or 
00012  * modify it under the terms of the GNU General Public License as 
00013  * published by the Free Software Foundation; either version 2 of the
00014  * License, or (at your option) any later version.
00015  *
00016  * This program is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  * GNU General Public License for more details.
00020  *
00021  * You should have received a copy of the GNU General Public License
00022  * along with this program; if not, write to the Free Software
00023  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
00024  * USA
00025  */
00026 
00027 #ifndef CRYSTAL_CLEAVAGE_H
00028 #define CRYSTAL_CLEAVAGE_H
00029 
00030 #include <libxml/parser.h>
00031 #include <list>
00032 
00033 namespace gcu
00034 {
00035 
00041 class CrystalCleavage
00042 {
00043 public:
00044 /*
00045 The default constructor.
00046 */
00047         CrystalCleavage ();
00053         CrystalCleavage (CrystalCleavage& ccCleavage) ;
00054 /*
00055 The destructor of CrystalAtom.
00056 */
00057         virtual ~CrystalCleavage ();
00058 
00062         int& Planes () {return m_nPlanes ;}
00066         int& h () {return m_nh ;}
00070         int& k () {return m_nk ;}
00074         int & l () {return m_nl ;}
00080         CrystalCleavage& operator= (CrystalCleavage& ccCleavage) ;
00085         bool operator== (CrystalCleavage& ccCleavage) ;
00092         xmlNodePtr Save (xmlDocPtr xml);
00099         bool Load (xmlNodePtr node);
00100         
00101 protected:
00105         int m_nh;
00109         int m_nk;
00113         int m_nl;
00117         int m_nPlanes ;
00118 };
00119 
00123 typedef std::list<CrystalCleavage*> CrystalCleavageList;
00124         
00125 } //namespace gcu
00126 
00127 #endif //CRYSTAL_CLEAVAGE_H

Generated on Wed Feb 8 09:59:43 2006 for The Gnome Chemistry Utils by  doxygen 1.4.1