Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkOverrideInformation.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkOverrideInformation.h,v $
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00038 #ifndef __vtkOverrideInformation_h
00039 #define __vtkOverrideInformation_h
00040 
00041 #include "vtkObject.h"
00042 
00043 class vtkObjectFactory;
00044 
00045 class VTK_COMMON_EXPORT vtkOverrideInformation : public vtkObject
00046 {
00047 public: 
00048   static vtkOverrideInformation* New();
00049   vtkTypeRevisionMacro(vtkOverrideInformation,vtkObject);
00051   virtual void PrintSelf(ostream& os, vtkIndent indent);
00052 
00054 
00057   const char* GetClassOverrideName() 
00058     { 
00059       return this->ClassOverrideName; 
00060     }
00062   
00064 
00067   const char* GetClassOverrideWithName()
00068     { 
00069       return this->ClassOverrideWithName; 
00070     }
00072   
00074 
00076   const char* GetDescription()
00077     { 
00078       return this->Description; 
00079     }
00081 
00083 
00084   vtkObjectFactory* GetObjectFactory()
00085     {
00086       return this->ObjectFactory;
00087     }
00088   // Description:
00089   // Set the class override name
00090   vtkSetStringMacro(ClassOverrideName);
00091   // Set the class override with name
00092   vtkSetStringMacro(ClassOverrideWithName);
00093   // Set the description
00094   vtkSetStringMacro(Description);
00096 protected:
00097   virtual void SetObjectFactory(vtkObjectFactory*);
00098 
00099 private:
00100   vtkOverrideInformation();
00101   ~vtkOverrideInformation();
00102   // allow the object factory to set the values in this
00103   // class, but only the object factory
00104 //BTX
00105   friend class vtkObjectFactory;
00106 //ETX
00107   
00108   char* ClassOverrideName;
00109   char* ClassOverrideWithName;
00110   char* Description;
00111   vtkObjectFactory* ObjectFactory;  
00112 private:
00113   vtkOverrideInformation(const vtkOverrideInformation&);  // Not implemented.
00114   void operator=(const vtkOverrideInformation&);  // Not implemented.
00115 };
00116 
00117 #endif