text: /*===================================================================
  
  The Medical Imaging Interaction Toolkit (MITK)
  
  Copyright (c) German Cancer Research Center,
  Division of Medical and Biological Informatics.
  All rights reserved.
  
  This software is distributed WITHOUT ANY WARRANTY; without
  even the implied warranty of MERCHANTABILITY or FITNESS FOR
  A PARTICULAR PURPOSE.
  
  See LICENSE.txt or http://www.mitk.org for details.
  
  ===================================================================*/
  
  #ifndef POINTSETWRITERFACTORY_H_HEADER_INCLUDED
  #define POINTSETWRITERFACTORY_H_HEADER_INCLUDED
  
  #include <MitkLegacyIOExports.h>
  
  #include "itkObjectFactoryBase.h"
  #include "mitkBaseData.h"
  
  namespace mitk
  {
  
  /**
   * @deprecatedSince{2014_03} Use mitk::IOUtils or mitk::FileReaderRegistry instead.
   */
  class DEPRECATED() MitkLegacyIO_EXPORT PointSetWriterFactory : public itk::ObjectFactoryBase
  {
  public:
  
    mitkClassMacro( mitk::PointSetWriterFactory, itk::ObjectFactoryBase )
  
    /** Class methods used to interface with the registered factories. */
    virtual const char* GetITKSourceVersion(void) const;
    virtual const char* GetDescription(void) const;
  
    /** Method for class instantiation. */
    itkFactorylessNewMacro(Self);
  
    /**
     * Register one factory of this type
     * \deprecatedSince{2013_09}
     */
    DEPRECATED(static void RegisterOneFactory(void))
    {
      static bool IsRegistered = false;
      if ( !IsRegistered )
      {
        PointSetWriterFactory::Pointer pointSetWriterFactory = PointSetWriterFactory::New();
        ObjectFactoryBase::RegisterFactory( pointSetWriterFactory );
        IsRegistered = true;
      }
    }
  
  protected:
    PointSetWriterFactory();
    ~PointSetWriterFactory();
  
  private:
    PointSetWriterFactory(const Self&); //purposely not implemented
    void operator=(const Self&); //purposely not implemented
  
  };
  
  } // end namespace mitk
  
  #endif
  