1 /* $Header: /var/cvs/mbdyn/mbdyn/mbdyn-1.0/libraries/libmbutil/withlab.h,v 1.20 2017/01/12 14:44:05 masarati Exp $ */ 2 /* 3 * This library comes with MBDyn (C), a multibody analysis code. 4 * http://www.mbdyn.org 5 * 6 * Copyright (C) 1996-2017 7 * 8 * Pierangelo Masarati <masarati@aero.polimi.it> 9 * 10 * Dipartimento di Ingegneria Aerospaziale - Politecnico di Milano 11 * via La Masa, 34 - 20156 Milano, Italy 12 * http://www.aero.polimi.it 13 * 14 * Changing this copyright notice is forbidden. 15 * 16 * This program is free software; you can redistribute it and/or modify 17 * it under the terms of the GNU General Public License as published by 18 * the Free Software Foundation (version 2 of the License). 19 * 20 * 21 * This program is distributed in the hope that it will be useful, 22 * but WITHOUT ANY WARRANTY; without even the implied warranty of 23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 24 * GNU General Public License for more details. 25 * 26 * You should have received a copy of the GNU General Public License 27 * along with this program; if not, write to the Free Software 28 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 29 */ 30 31 /* Classe da cui derivare gli oggetti dotati di label */ 32 33 34 #ifndef WITHLAB_H 35 #define WITHLAB_H 36 37 #include <string> 38 #include "myassert.h" 39 40 /* WithLabel - begin */ 41 42 class WithLabel { 43 protected: 44 unsigned int uLabel; 45 std::string sName; 46 47 public: 48 WithLabel(unsigned int uL = 0, const std::string& sN = ""); 49 virtual ~WithLabel(void); 50 51 void PutLabel(unsigned int uL); 52 void PutName(const std::string& sN); 53 54 unsigned int GetLabel(void) const; 55 const std::string& GetName(void) const; 56 }; 57 58 /* WithLabel - end */ 59 60 #endif // WITHLAB_H 61