Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | 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 library is free software; you can redistribute it and/or 00012 * modify it under the terms of the GNU Lesser General Public 00013 * License as published by the Free Software Foundation; either 00014 * version 2.1 of the License, or (at your option) any later version. 00015 * 00016 * This library 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 GNU 00019 * Lesser General Public License for more details. 00020 * 00021 * You should have received a copy of the GNU Lesser General Public 00022 * License along with this library; if not, write to the 00023 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00024 * Boston, MA 02111-1307, 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 Mon Dec 13 15:25:37 2004 for The Gnome Chemistry Utils by doxygen 1.3.8