RxDock 0.1.0
A fast, versatile, and open-source program for docking ligands to proteins and nucleic acids
Loading...
Searching...
No Matches
PdbFileSource.h
1/***********************************************************************
2 * The rDock program was developed from 1998 - 2006 by the software team
3 * at RiboTargets (subsequently Vernalis (R&D) Ltd).
4 * In 2006, the software was licensed to the University of York for
5 * maintenance and distribution.
6 * In 2012, Vernalis and the University of York agreed to release the
7 * program as Open Source software.
8 * This version is licensed under GNU-LGPL version 3.0 with support from
9 * the University of Barcelona.
10 * http://rdock.sourceforge.net/
11 ***********************************************************************/
12
13// Handles retrieval of atomic (coordinate) info
14// from XPLOR PDB files (with segment name in last column).
15
16#ifndef _RBTPDBFILESOURCE_H_
17#define _RBTPDBFILESOURCE_H_
18
19#include "rxdock/BaseMolecularFileSource.h"
20
21namespace rxdock {
22
24public:
25 // Constructors
26 PdbFileSource(const char *fileName);
27 PdbFileSource(const std::string fileName);
28
29 // Default destructor
30 virtual ~PdbFileSource();
31
33 // Override public methods from BaseMolecularDataSource
34 virtual bool isTitleListSupported() { return true; }
35 virtual bool isAtomListSupported() { return true; }
36 virtual bool isCoordinatesSupported() { return true; }
37 virtual bool isBondListSupported() { return false; }
38
39protected:
40 // Pure virtual in BaseFileSource - needs to be defined here
41 virtual void Parse();
42
43private:
44 // Private methods
45 PdbFileSource(); // Disable default constructor
46 PdbFileSource(const PdbFileSource &); // Copy constructor disabled by default
48 operator=(const PdbFileSource &); // Copy assignment disabled by default
49};
50
51// useful typedefs
52typedef SmartPtr<PdbFileSource> PdbFileSourcePtr; // Smart pointer
53
54} // namespace rxdock
55
56#endif //_RBTPDBFILESOURCE_H_
Definition BaseMolecularFileSource.h:29
Definition PdbFileSource.h:23
Definition SmartPointer.h:48