00001 00002 // 00003 // This file is part of the MADELINE 2 program 00004 // written by Edward H. Trager, Ritu Khanna, and Adrian Marrs 00005 // Copyright (c) 2005 by the 00006 // Regents of the University of Michigan. 00007 // All Rights Reserved. 00008 // 00009 // The latest version of this program is available from: 00010 // 00011 // http://eyegene.ophthy.med.umich.edu/madeline/ 00012 // 00013 // Released under the GNU General Public License. 00014 // A copy of the GPL is included in the distribution 00015 // package of this software, or see: 00016 // 00017 // http://www.gnu.org/copyleft/ 00018 // 00019 // ... for licensing details. 00020 // 00022 // 00023 // 2006.02.14.RK 00024 // 00025 00026 // 00027 // Width.h 00028 // 00029 // 00030 #ifndef Width_INCLUDED 00031 #define Width_INCLUDED 00032 00033 class Width{ 00034 private: 00035 unsigned _left; 00036 unsigned _right; 00037 unsigned _total; 00038 00039 public: 00040 Width(){ 00041 _left=_right=_total=0; 00042 } 00043 // Setters: 00044 void setLeft(unsigned left) { _left = left; } 00045 void setRight(unsigned right) { _right = right; } 00046 void setTotal(unsigned total) { _total = total; } 00047 // Getters: 00048 unsigned getLeft(void) const { return _left; } 00049 unsigned getRight(void) const { return _right; } 00050 unsigned getTotal(void) const { return _total; } 00051 }; 00052 00053 #endif