Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkMetaDataObject.h File Reference

Go to the source code of this file.

Namespaces

namespace  itk

Defines

#define ITK_IMAGE_TYPE_METADATAPRINT(STORAGE_TYPE)
#define ITK_OBJECT_TYPE_METADATAPRINT_1COMMA(TYPE_NAME_PART1, TYPE_NAME_PART2)
#define NATIVE_TYPE_METADATAPRINT(TYPE_NAME)

Functions

template<class T>
void EncapsulateMetaData (MetaDataDictionary &Dictionary, const char *key, const T &invalue)
template<class T>
*EncapsulateMetaData is a
convenience function that
encapsulates raw MetaData
into a *MetaDataObject that
can be put into the MetaDataDictionary
*param value the value of
type T that is to be encapsulated
*return A smartpointer ot
a MetaDataObject that is suitable
for *insertion into a MetaDataDictionary
*void 
EncapsulateMetaData (MetaDataDictionary &Dictionary, const std::string &key, const T &invalue)
template<class T>
bool ExposeMetaData (MetaDataDictionary &Dictionary, const char *const key, T &outval)
template<class T>
bool ExposeMetaData (MetaDataDictionary &Dictionary, const std::string key, T &outval)


Define Documentation

#define ITK_IMAGE_TYPE_METADATAPRINT STORAGE_TYPE   ) 
 

Value:

#define ITK_OBJECT_TYPE_METADATAPRINT_1COMMA TYPE_NAME_PART1,
TYPE_NAME_PART2   ) 
 

Value:

template <> \
void \
  itk::MetaDataObject< TYPE_NAME_PART1 , TYPE_NAME_PART2 > \
  ::Print(std::ostream& os) const \
{ \
  this->m_MetaDataObjectValue->Print(os); \
} \
template <> \
void \
  itk::MetaDataObject< const TYPE_NAME_PART1 , TYPE_NAME_PART2 > \
  ::Print(std::ostream& os) const \
{ \
  this->m_MetaDataObjectValue->Print(os); \
}

#define NATIVE_TYPE_METADATAPRINT TYPE_NAME   ) 
 

Value:

template <> \
void \
  itk::MetaDataObject< TYPE_NAME > \
  ::Print(std::ostream& os) const \
{ \
  os << this->m_MetaDataObjectValue << std::endl; \
} \
template <> \
void \
  itk::MetaDataObject< const TYPE_NAME > \
  ::Print(std::ostream& os) const \
{ \
  os << this->m_MetaDataObjectValue << std::endl; \
}


Function Documentation

template<class T>
void itk::EncapsulateMetaData MetaDataDictionary &  Dictionary,
const char *  key,
const T &  invalue
[inline]
 

Definition at line 165 of file itkMetaDataObject.h.

References itk::EncapsulateMetaData().

template<class T>
* EncapsulateMetaData is a convenience function that encapsulates raw MetaData into a* MetaDataObject that can be put into the MetaDataDictionary* param value the value of type T that is to be encapsulated* return A smartpointer ot a MetaDataObject that is suitable for* insertion into a MetaDataDictionary* void itk::EncapsulateMetaData MetaDataDictionary &  Dictionary,
const std::string &  key,
const T &  invalue
[inline]
 

Definition at line 156 of file itkMetaDataObject.h.

References HardConnectedComponentImageFilter::New(), and itk::MetaDataObject< MetaDataObjectType >::SetMetaDataObjectValue().

Referenced by itk::EncapsulateMetaData().

template<class T>
bool itk::ExposeMetaData MetaDataDictionary &  Dictionary,
const char *const   key,
T &  outval
[inline]
 

Definition at line 230 of file itkMetaDataObject.h.

References itk::ExposeMetaData().

template<class T>
bool itk::ExposeMetaData MetaDataDictionary &  Dictionary,
const std::string  key,
T &  outval
[inline]
 

FindValInDictionary provides a shortcut for pulling a value of type T out of a MetaDataDictionary. If Dictionary[key] isn't set, return false, otherwise copy into outval reference and return true.

Parameters:
Dictionary -- reference to a dictionary
key -- string identifier for this object
outval -- where to store value found in table.

Definition at line 180 of file itkMetaDataObject.h.

References itk::MetaDataObject< MetaDataObjectType >::GetMetaDataObjectValue(), itk::MetaDataDictionary::HasKey(), and name().

Referenced by itk::ExposeMetaData().


Generated at Sun Jul 9 18:46:15 2006 for ITK by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2000