LTI-Lib latest version v1.9 - last update 10 Apr 2010

ltiObject.h

00001 /*
00002  * Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
00003  * Lehrstuhl fuer Technische Informatik, RWTH-Aachen, Germany
00004  *
00005  * This file is part of the LTI-Computer Vision Library (LTI-Lib)
00006  *
00007  * The LTI-Lib is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU Lesser General Public License (LGPL)
00009  * as published by the Free Software Foundation; either version 2.1 of
00010  * the License, or (at your option) any later version.
00011  *
00012  * The LTI-Lib is distributed in the hope that it will be
00013  * useful, but WITHOUT ANY WARRANTY; without even the implied warranty
00014  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU Lesser General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Lesser General Public
00018  * License along with the LTI-Lib; see the file LICENSE.  If
00019  * not, write to the Free Software Foundation, Inc., 59 Temple Place -
00020  * Suite 330, Boston, MA 02111-1307, USA.
00021  */
00022 
00023 
00024 /*----------------------------------------------------------------
00025  * project ....: LTI Digital Image/Signal Processing Library
00026  * file .......: ltiObject.h
00027  * authors ....: Pablo Alvarado
00028  * organization: LTI, RWTH Aachen
00029  * creation ...: 01.04.99
00030  * revisions ..: $Id: ltiObject.h,v 1.5 2006/02/07 18:09:23 ltilib Exp $
00031  */
00032 
00033 #ifndef _LTI_OBJECT_H_
00034 #define _LTI_OBJECT_H_
00035 
00036 #include "ltiMacroSymbols.h"
00037 
00038 #ifdef _LTI_MSC_6
00039 #pragma warning(disable:4786)
00040 #endif
00041 
00042 namespace lti {
00043   /**
00044    * Base class for all lti objects
00045    */
00046   class object {
00047   public:
00048     /**
00049      * default constructor
00050      */
00051     object();
00052 
00053     /**
00054      * destructor
00055      */
00056     virtual ~object();
00057 
00058     /**
00059      * returns the name of this class. Each class has to
00060      * overload this function and return its name. The returned
00061      * string is system-independent; however, template classes
00062      * do not consider the template argument.
00063      */
00064     virtual const char* getTypeName() const;
00065 
00066   protected:
00067     /**
00068      * this flag indicates if any lti-object has been constructed
00069      */
00070     static bool ltiLibInitialized;
00071 
00072     /**
00073      * member which initialize everything for the ltilib
00074      */
00075     void initialize();
00076   };
00077 
00078   inline bool isNull(const void* p) {return p == 0;};
00079   inline bool notNull(const void* p) {return p != 0;};
00080 
00081 }
00082 
00083 #endif

Generated on Sat Apr 10 15:25:54 2010 for LTI-Lib by Doxygen 1.6.1