Classes | Namespaces | Defines

mitkGenericProperty.h File Reference

#include <string>
#include <sstream>
#include <stdlib.h>
#include "mitkVector.h"
#include "mitkCommon.h"
#include "mitkBaseProperty.h"

Go to the source code of this file.

Classes

class  mitk::GenericProperty< T >

Namespaces

namespace  mitk
 

Qmitk.


Defines

#define mitkSpecializeGenericProperty(PropertyName, Type, DefaultValue)

Define Documentation

#define mitkSpecializeGenericProperty (   PropertyName,
  Type,
  DefaultValue 
)
Value:
class MITK_CORE_EXPORT PropertyName: public GenericProperty< Type >        \
{                                                         \
public:                                                   \
  mitkClassMacro(PropertyName, GenericProperty< Type >);  \
  itkNewMacro(PropertyName);                              \
  mitkNewMacro1Param(PropertyName, Type);                 \
  virtual ~PropertyName() {}                              \
protected:                                                \
  PropertyName() { m_Value = DefaultValue; }              \
  PropertyName(Type x) : GenericProperty<Type>(x) {}      \
};

Generates a specialized subclass of mitk::GenericProperty. This way, GetNameOfClass() returns the value provided by PropertyName. Please see mitkProperties.h for examples.

Parameters:
PropertyNamethe name of the instantiation of GenericProperty
Typethe value type of the GenericProperty

Definition at line 134 of file mitkGenericProperty.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines