/***********************************************************************
 * The rDock program was developed from 1998 - 2006 by the software team
 * at RiboTargets (subsequently Vernalis (R&D) Ltd).
 * In 2006, the software was licensed to the University of York for
 * maintenance and distribution.
 * In 2012, Vernalis and the University of York agreed to release the
 * program as Open Source software.
 * This version is licensed under GNU-LGPL version 3.0 with support from
 * the University of Barcelona.
 * http://rdock.sourceforge.net/
 ***********************************************************************/

// Handles retrieval of atomic (coordinate) info from Charmm CRD files

#ifndef _RBTCRDFILESOURCE_H_
#define _RBTCRDFILESOURCE_H_

#include "RbtBaseMolecularFileSource.h"

class RbtCrdFileSource: public RbtBaseMolecularFileSource {
 public:
    // Constructors
    RbtCrdFileSource(const char* fileName);
    RbtCrdFileSource(const RbtString fileName);

    // Default destructor
    virtual ~RbtCrdFileSource();

    ////////////////////////////////////////
    // Override public methods from RbtBaseMolecularDataSource
    virtual RbtBool isTitleListSupported() { return true; };
    virtual RbtBool isAtomListSupported() { return true; };
    virtual RbtBool isCoordinatesSupported() { return true; };
    virtual RbtBool isBondListSupported() { return false; };

 protected:
    // Pure virtual in RbtBaseFileSource - needs to be defined here
    virtual void Parse();

 private:
    // Private methods
    RbtCrdFileSource();                                    // Disable default constructor
    RbtCrdFileSource(const RbtCrdFileSource&);             // Copy constructor disabled by default
    RbtCrdFileSource& operator=(const RbtCrdFileSource&);  // Copy assignment disabled by default
};

// useful typedefs
typedef SmartPtr<RbtCrdFileSource> RbtCrdFileSourcePtr;  // Smart pointer

#endif  //_RBTCRDFILESOURCE_H_
