/*=========================================================================

  Program:   Visualization Toolkit
  Module:    vtkCMLMoleculeReader.h

  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
  All rights reserved.
  See Copyright.txt or http://www.kitware.com/Copyright.htm 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 notice for more information.

=========================================================================*/
// .NAME vtkCMLMoleculeReader - Read a CML file and output a
// vtkMolecule object
// .SECTION Description

#ifndef __vtkCMLMoleculeReader_h
#define __vtkCMLMoleculeReader_h

#include "vtkChemistryCoreModule.h" // For export macro
#include "vtkDataReader.h"

class vtkMolecule;

class VTKCHEMISTRYCORE_EXPORT vtkCMLMoleculeReader : public vtkDataReader
{
public:
  static vtkCMLMoleculeReader *New();
  vtkTypeMacro(vtkCMLMoleculeReader,vtkDataReader);
  void PrintSelf(ostream& os, vtkIndent indent);

  // Description:
  // Get/Set the output (vtkMolecule) that the reader will fill
  vtkMolecule *GetOutput();
  void SetOutput(vtkMolecule *);

  // Description:
  // Get/Set the name of the CML file
  vtkSetStringMacro(FileName);
  vtkGetStringMacro(FileName);

protected:
  vtkCMLMoleculeReader();
  ~vtkCMLMoleculeReader();

  int RequestData(vtkInformation *, vtkInformationVector **,
                  vtkInformationVector *);
  int FillOutputPortInformation(int, vtkInformation*);

  char *FileName;

private:
  vtkCMLMoleculeReader(const vtkCMLMoleculeReader&);  // Not implemented.
  void operator=(const vtkCMLMoleculeReader&);  // Not implemented.
};

#endif
