00001 /* Gnome gxsm - Gnome X Scanning Microscopy 00002 * universal STM/AFM/SARLS/SPALEED/... controlling and 00003 * data analysis software 00004 * 00005 * Copyright (C) 1999 The Free Software Foundation 00006 * 00007 * Authors: Percy Zahl <zahl@fkp.uni-hannover.de> 00008 * additional features: Andreas Klust <klust@fkp.uni-hannover.de> 00009 * 00010 * This program is free software; you can redistribute it and/or modify 00011 * it under the terms of the GNU General Public License as published by 00012 * the Free Software Foundation; either version 2 of the License, or 00013 * (at your option) any later version. 00014 * 00015 * This program is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 * GNU General Public License for more details. 00019 * 00020 * You should have received a copy of the GNU General Public License 00021 * along with this program; if not, write to the Free Software 00022 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. 00023 */ 00024 00025 #ifndef __PROBE_BASE_H 00026 #define __PROBE_BASE_H 00027 00028 /* SPM Hardware auf /dev/dspdev -- xafm.out running on dsp 00029 * used by AFM, STM, SARLS 00030 */ 00031 00032 class ProbeBase{ 00033 public: 00034 ProbeBase(UnitObj *x=NULL, UnitObj *z=NULL){ 00035 XUnit = x?x : new UnitObj(" "," "); 00036 ZUnit = z?z : new UnitObj(" "," "); 00037 }; 00038 ~ProbeBase(){ if(XUnit) delete XUnit; if(ZUnit) delete ZUnit; }; 00039 00040 void SetUnits(UnitObj *x=NULL, UnitObj *z=NULL){ 00041 if(XUnit) delete XUnit; 00042 if(ZUnit) delete ZUnit; 00043 XUnit=x; ZUnit=z; 00044 }; 00045 00046 UnitObj *XUnit; 00047 UnitObj *ZUnit; 00048 }; 00049 00050 #endif