KWStyle - itkMetaDataObjectBase.h
 
Matrix View
Description

1 /*=========================================================================
2
3   Program:   Insight Segmentation & Registration Toolkit
4   Module:    $RCSfile: itkMetaDataObjectBase.h.html,v $
5   Language:  C++
6   Date:      $Date: 2006/01/17 19:15:42 $
7   Version:   $Revision: 1.4 $
8
9   Copyright (c) Insight Software Consortium. All rights reserved.
10   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
11
12   Portions of this code are covered under the VTK copyright.
13   See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm for details.
14
15      This software is distributed WITHOUT ANY WARRANTY; without even 
16      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
17 IND *****PURPOSE.  See the above copyright notices for more information.
18
19 =========================================================================*/
20 #ifndef __itkMetaDataObjectBase_h
21 #define __itkMetaDataObjectBase_h
22
23 #include "itkLightObject.h"
24 #include <typeinfo>
25 #include <iostream>
26
27 namespace itk {
28 IND **/** \class MetaDataObjectBase
29 IND **** \brief
30 IND **** The MetaDataObjectBase class is designed as the
31 IND **** common interface for MetaDataObject's.
32 IND **** This class is intended as the value part
33 IND **** of the (key,value) pair to be stored in
34 IND **** a MetaDataDictionary
35 IND **** 
36 IND **** \author Hans J. Johnson
37 IND ****/
38 IND **class ITKCommon_EXPORT MetaDataObjectBase : public LightObject
39 IND **{
40 IND ****public:
41 IND ******/** Smart pointer typedef support. */
42 IND ******typedef MetaDataObjectBase  Self;
43 TDA,IND ******typedef LightObject  Superclass;
44 IND ******typedef SmartPointer<Self>  Pointer;
45 TDA,IND ******typedef SmartPointer<const Self>  ConstPointer;
46
47
48 IND ******/** Run-time type information (and related methods). */
49 IND ******itkTypeMacro(MetaDataObjectBase, LightObject);
50
51 IND ******/**
52 IND ******** \author Hans J. Johnson
53 LEN,IND ******** \return A pointer to a const char array containing the unique type name.
54 IND ********/
55 IND ******virtual const char * GetMetaDataObjectTypeName(void) const;
56 IND ******/**
57 IND ******** \author Hans J. Johnson
58 IND ******** \return A constant reference to a std::type_info object
59 IND ********/
60 IND ******virtual const std::type_info & GetMetaDataObjectTypeInfo(void) const;
61 IND ******/**
62 IND ******** Defines the default behavior for printing out this element
63 IND ******** \param os An output stream
64 IND ********/
65 IND ******virtual void Print(std::ostream& os) const;
66 IND ****protected:
67 IND ******/** Method for creation through the object factory.   */
68 IND ******// Should not be able to construct a new MetaDataObjectBase
69 IND ******static  Pointer New(void);
70 IND ******/**
71 IND ******** Default destructor
72 IND ********/
73 IND ******virtual ~MetaDataObjectBase();
74 IND ******MetaDataObjectBase();
75 IND ****private:
76 IND ******//void * operator new(size_t nothing) {};//purposefully not implemented
77 IND ******MetaDataObjectBase(const Self &);//purposely not implemented
78 IND ******void operator=(const Self&); //purposely not implemented
79 IND **};
80 }
81
82 #endif //__itkMetaDataObjectBase_h
83
84 EOF

Generated by KWStyle 1.0b on Tuesday January,17 at 02:14:24PM
© Kitware Inc.