Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions

mitk::IntPropertySerializer Class Reference

Inheritance diagram for mitk::IntPropertySerializer:
Inheritance graph
[legend]
Collaboration diagram for mitk::IntPropertySerializer:
Collaboration graph
[legend]

List of all members.

Public Types

typedef IntPropertySerializer Self
typedef BasePropertySerializer Superclass
typedef itk::SmartPointer< SelfPointer
typedef itk::SmartPointer
< const Self
ConstPointer

Public Member Functions

virtual const char * GetClassName () const
virtual TiXmlElementSerialize ()
 Serializes given BaseProperty object.

Static Public Member Functions

static Pointer New ()

Protected Member Functions

 IntPropertySerializer ()
virtual ~IntPropertySerializer ()

Detailed Description

Definition at line 30 of file mitkIntPropertySerializer.cpp.


Member Typedef Documentation

typedef itk::SmartPointer<const Self> mitk::IntPropertySerializer::ConstPointer

Reimplemented from mitk::BasePropertySerializer.

Definition at line 34 of file mitkIntPropertySerializer.cpp.

typedef itk::SmartPointer<Self> mitk::IntPropertySerializer::Pointer

Reimplemented from mitk::BasePropertySerializer.

Definition at line 34 of file mitkIntPropertySerializer.cpp.

Reimplemented from mitk::BasePropertySerializer.

Definition at line 34 of file mitkIntPropertySerializer.cpp.

Reimplemented from mitk::BasePropertySerializer.

Definition at line 34 of file mitkIntPropertySerializer.cpp.


Constructor & Destructor Documentation

mitk::IntPropertySerializer::IntPropertySerializer (  ) [inline, protected]

Definition at line 50 of file mitkIntPropertySerializer.cpp.

{}
virtual mitk::IntPropertySerializer::~IntPropertySerializer (  ) [inline, protected, virtual]

Definition at line 51 of file mitkIntPropertySerializer.cpp.

{}

Member Function Documentation

virtual const char* mitk::IntPropertySerializer::GetClassName (  ) const [virtual]

Reimplemented from mitk::BasePropertySerializer.

static Pointer mitk::IntPropertySerializer::New (  ) [static]
virtual TiXmlElement* mitk::IntPropertySerializer::Serialize (  ) [inline, virtual]

Serializes given BaseProperty object.

Returns:
the filename of the newly created file.

This should be overwritten by specific sub-classes.

Reimplemented from mitk::BasePropertySerializer.

Definition at line 37 of file mitkIntPropertySerializer.cpp.

References TiXmlElement::SetAttribute().

    {
      if (const IntProperty* prop = dynamic_cast<const IntProperty*>(m_Property.GetPointer()))
      {
        TiXmlElement* element = new TiXmlElement("int");
        element->SetAttribute("value", prop->GetValue());
        return element;
      }
      else return NULL;
    }

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines