Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/PdbAtomInfoContainer.hpp

    r16462f r4fbca9c  
    1111#include "PdbKey.hpp"
    1212
    13 class Vector;
    14 
    1513#include <string>
    16 #include <typeinfo>
    1714
    1815/**
     
    2522
    2623  // getter and setter
    27   template <class T> T get(const PdbKey::PdbDataKey key) const  {
    28     switch (key) {
    29       default :
    30         std::cout << "Unknown key or not representable as " << typeid(T).name() << ": " << key << std::endl;
    31         break;
    32     }
    33     return (T)NULL;
    34   }
     24  std::string get(const PdbKey::PdbDataKey key) const;
    3525  void set(const PdbKey::PdbDataKey key, std::string value);
    3626
     
    5646
    5747private:
    58   std::string token;
    5948  int serial;
    6049  std::string name;
    61   char altLoc;
     50  char altloc;
    6251  std::string resName;
    6352  char chainID;
    6453  int resSeq;
    6554  char iCode;
    66   Vector XYZ;
    6755  float occupancy;
    6856  float tempFactor;
    69   std::string element;
    7057  int charge;
    7158};
    7259
    73 template <>
    74 std::string PdbAtomInfoContainer::get<std::string>(const PdbKey::PdbDataKey key) const;
    75 template <>
    76 int PdbAtomInfoContainer::get<int>(const PdbKey::PdbDataKey key) const;
    77 template <>
    78 double PdbAtomInfoContainer::get<double>(const PdbKey::PdbDataKey key) const;
    79 
    8060#endif /* PDBATOMINFOCONTAINER_HPP_ */
Note: See TracChangeset for help on using the changeset viewer.