<commit_before>/*=========================================================================

Program:   ORFEO Toolbox
Language:  C++
Date:      $Date$
Version:   $Revision$


Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.


This software is distributed WITHOUT ANY WARRANTY; without even 
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
PURPOSE.  See the above copyright notices for more information.

=========================================================================*/
#ifndef __otbShapeFileDataWriter_h
#define __otbShapeFileDataWriter_h

#include "itkProcessObject.h"

namespace otb
{
  /** \class ShapeFileDataWriter
   *  \brief This class writes the ShapeFile format 
   *
   *  \ingroup IO
   */
	 
template <class TInputShapeFile>
class ITK_EXPORT ShapeFileDataWriter : public itk::ProcessObject
{
public :

	/** Standard class typedefs. */
	typedef ShapeFileDataWriter											Self;
  typedef ProcessObject														Superclass;
  typedef itk::SmartPointer<Self> 								Pointer;
  typedef itk::SmartPointer<const Self>  					ConstPointer;

  /** Method for creation through the object factory. */
  itkNewMacro(Self);

  /** Run-time type information (and related methods). */
  itkTypeMacro(ShapeFileDataWriter, itk::ProcessObject);
	
	typedef TInputShapeFile									InputShapeFileType;
	
  /** Set/Get the image input of this writer.  */
  void SetInput(const InputShapeFileType *input);
  const InputShapeFileType * GetInput(void);
  const InputShapeFileType * GetInput(unsigned int idx);
	
  /** Does the real work. */
	virtual void Write();

  virtual void GenerateData();

	virtual void Update()  {  this->Write(); }

	
 	/** Specify the name of the output shapefile to write. */
 	itkSetStringMacro(FileName);
	itkGetStringMacro(FileName);

protected:
	ShapeFileDataWriter();
	~ShapeFileDataWriter();

  void PrintSelf(std::ostream& os, itk::Indent indent) const;

  std::string m_FileName; // The file to be read
	
private:
  ShapeFileDataWriter(const Self&); //purposely not implemented
  void operator=(const Self&); //purposely not implemented

} ;

} // end namespace otb

#ifndef OTB_MANUAL_INSTANTIATION
#include "otbShapeFileDataWriter.txx"
#endif

#endif // __otbShapeFileDataWriter_h

	 
	 
<commit_msg>Ajout itk:: manquant<commit_after>/*=========================================================================

Program:   ORFEO Toolbox
Language:  C++
Date:      $Date$
Version:   $Revision$


Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.


This software is distributed WITHOUT ANY WARRANTY; without even 
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
PURPOSE.  See the above copyright notices for more information.

=========================================================================*/
#ifndef __otbShapeFileDataWriter_h
#define __otbShapeFileDataWriter_h

#include "itkProcessObject.h"

namespace otb
{
  /** \class ShapeFileDataWriter
   *  \brief This class writes the ShapeFile format 
   *
   *  \ingroup IO
   */
	 
template <class TInputShapeFile>
class ITK_EXPORT ShapeFileDataWriter : public itk::ProcessObject
{
public :

	/** Standard class typedefs. */
	typedef ShapeFileDataWriter											Self;
	typedef itk::ProcessObject														Superclass;
  typedef itk::SmartPointer<Self> 								Pointer;
  typedef itk::SmartPointer<const Self>  					ConstPointer;

  /** Method for creation through the object factory. */
  itkNewMacro(Self);

  /** Run-time type information (and related methods). */
  itkTypeMacro(ShapeFileDataWriter, itk::ProcessObject);
	
	typedef TInputShapeFile									InputShapeFileType;
	
  /** Set/Get the image input of this writer.  */
  void SetInput(const InputShapeFileType *input);
  const InputShapeFileType * GetInput(void);
  const InputShapeFileType * GetInput(unsigned int idx);
	
  /** Does the real work. */
	virtual void Write();

  virtual void GenerateData();

	virtual void Update()  {  this->Write(); }

	
 	/** Specify the name of the output shapefile to write. */
 	itkSetStringMacro(FileName);
	itkGetStringMacro(FileName);

protected:
	ShapeFileDataWriter();
	~ShapeFileDataWriter();

  void PrintSelf(std::ostream& os, itk::Indent indent) const;

  std::string m_FileName; // The file to be read
	
private:
  ShapeFileDataWriter(const Self&); //purposely not implemented
  void operator=(const Self&); //purposely not implemented

} ;

} // end namespace otb

#ifndef OTB_MANUAL_INSTANTIATION
#include "otbShapeFileDataWriter.txx"
#endif

#endif // __otbShapeFileDataWriter_h

	 
	 

{'fraction_non_alphanumeric': 0.14822771213748656, 'fraction_numerical': 0.0, 'mean_word_length': 4.290909090909091, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4800850', 'n_tokens_mistral': 1481, 'n_tokens_neox': 1295, 'n_words': 394}