00001 00009 /************************************************************************** 00010 00011 begin : Thu Dec 17 2002 00012 copyright : (C) 2002-2010 by Ewald Arnold 00013 email : mockpp at ewald-arnold dot de 00014 00015 00016 This program is free software; you can redistribute it and/or modify 00017 it under the terms of the GNU Lesser General Public License as 00018 published by the Free Software Foundation; either version 2 of the License, 00019 or (at your option) any later version. 00020 00021 This program is distributed in the hope that it will be useful, 00022 but WITHOUT ANY WARRANTY; without even the implied warranty of 00023 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00024 GNU General Public License for more details. 00025 00026 You should have received a copy of the GNU Lesser General Public License 00027 along with this program; if not, write to the Free Software 00028 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00029 00030 **/ 00031 00032 00033 #define MOCKPP_NEED_EXPORTS 00034 #include <mockpp/mockpp.h> // always first 00035 00036 #include <mockpp/Verifiable.h> 00037 #include <mockpp/VerifiableList.h> 00038 00039 00040 MOCKPP_NS_START 00041 00042 00043 MOCKPP_API_IMPL0 Verifiable::Verifiable (const String &name, VerifiableList *parent) 00044 { 00045 myParent = parent; 00046 myName = name; 00047 if (myParent != 0) 00048 myParent->addVerifiable(this); 00049 } 00050 00051 00052 MOCKPP_API_IMPL(String) Verifiable::getVerifiableName() const 00053 { 00054 return myName; 00055 } 00056 00057 00058 MOCKPP_API_IMPL0 Verifiable::~Verifiable () 00059 { 00060 if (myParent != 0) 00061 myParent->removeVerifiable(this); 00062 myParent = 0; 00063 } 00064 00065 00066 MOCKPP_API_IMPL(void) Verifiable::setParent(VerifiableList *parent) 00067 { 00068 myParent = parent; 00069 } 00070 00071 00072 MOCKPP_API_IMPL(VerifiableList *) Verifiable::getParent() const 00073 { 00074 return myParent; 00075 } 00076 00077 00078 MOCKPP_API_IMPL(unsigned) Verifiable::numVerifiables() const 00079 { 00080 return 0; 00081 } 00082 00083 00084 MOCKPP_API_IMPL(Verifiable *) Verifiable::getVerifiable(unsigned /*idx*/) 00085 { 00086 return 0; 00087 } 00088 00089 00090 MOCKPP_NS_END 00091 00092 00093 00094