Action_Thermostats
        Add_AtomRandomPerturbation
        Add_FitFragmentPartialChargesAction
        Add_RotateAroundBondAction
        Add_SelectAtomByNameAction
        Added_ParseSaveFragmentResults
        AddingActions_SaveParseParticleParameters
        Adding_Graph_to_ChangeBondActions
        Adding_MD_integration_tests
        Adding_ParticleName_to_Atom
        Adding_StructOpt_integration_tests
        AtomFragments
        Automaking_mpqc_open
        AutomationFragmentation_failures
        Candidate_v1.5.4
        Candidate_v1.6.0
        Candidate_v1.6.1
        Candidate_v1.7.0
        ChangeBugEmailaddress
        ChangingTestPorts
        ChemicalSpaceEvaluator
        CombiningParticlePotentialParsing
        Combining_Subpackages
        Debian_Package_split
        Debian_package_split_molecuildergui_only
        Disabling_MemDebug
        Docu_Python_wait
        EmpiricalPotential_contain_HomologyGraph
        EmpiricalPotential_contain_HomologyGraph_documentation
        Enable_parallel_make_install
        Enhance_userguide
        Enhanced_StructuralOptimization
        Enhanced_StructuralOptimization_continued
        Example_ManyWaysToTranslateAtom
        Exclude_Hydrogens_annealWithBondGraph
        FitPartialCharges_GlobalError
        Fix_BoundInBox_CenterInBox_MoleculeActions
        Fix_ChargeSampling_PBC
        Fix_ChronosMutex
        Fix_FitPartialCharges
        Fix_FitPotential_needs_atomicnumbers
        Fix_ForceAnnealing
        Fix_IndependentFragmentGrids
        Fix_ParseParticles
        Fix_ParseParticles_split_forward_backward_Actions
        Fix_PopActions
        Fix_QtFragmentList_sorted_selection
        Fix_Restrictedkeyset_FragmentMolecule
        Fix_StatusMsg
        Fix_StepWorldTime_single_argument
        Fix_Verbose_Codepatterns
        Fix_fitting_potentials
        Fixes
        ForceAnnealing_goodresults
        ForceAnnealing_oldresults
        ForceAnnealing_tocheck
        ForceAnnealing_with_BondGraph
        ForceAnnealing_with_BondGraph_continued
        ForceAnnealing_with_BondGraph_continued_betteresults
        ForceAnnealing_with_BondGraph_contraction-expansion
        FragmentAction_writes_AtomFragments
        FragmentMolecule_checks_bonddegrees
        GeometryObjects
        Gui_Fixes
        Gui_displays_atomic_force_velocity
        ImplicitCharges
        IndependentFragmentGrids
        IndependentFragmentGrids_IndividualZeroInstances
        IndependentFragmentGrids_IntegrationTest
        IndependentFragmentGrids_Sole_NN_Calculation
        JobMarket_RobustOnKillsSegFaults
        JobMarket_StableWorkerPool
        JobMarket_unresolvable_hostname_fix
        MoreRobust_FragmentAutomation
        ODR_violation_mpqc_open
        PartialCharges_OrthogonalSummation
        PdbParser_setsAtomName
        PythonUI_with_named_parameters
        QtGui_reactivate_TimeChanged_changes
        Recreated_GuiChecks
        Rewrite_FitPartialCharges
        RotateToPrincipalAxisSystem_UndoRedo
        SaturateAtoms_findBestMatching
        SaturateAtoms_singleDegree
        StoppableMakroAction
        Subpackage_CodePatterns
        Subpackage_JobMarket
        Subpackage_LinearAlgebra
        Subpackage_levmar
        Subpackage_mpqc_open
        Subpackage_vmg
        Switchable_LogView
        ThirdParty_MPQC_rebuilt_buildsystem
        TrajectoryDependenant_MaxOrder
        TremoloParser_IncreasedPrecision
        TremoloParser_MultipleTimesteps
        TremoloParser_setsAtomName
        Ubuntu_1604_changes
        stable
      
      
        
          | 
            Last change
 on this file since fb9eba was             56f73b, checked in by Frederik Heber <heber@…>, 15 years ago           | 
        
        
          | 
             
Added config.h also to all header files, code check test ascertain this in the future. 
 
- as we want to use config.h to pass stuff such as MEMDEBUG, NDEBUG,
LOG_OBSERVER, we have to make sure that it is present in each and every
file.
 - split up CodeChecks/testsuite.at: each test has its own .at file.
  
           | 
        
        
          
            
              - 
Property                 mode
 set to                 
100644
               
             
           | 
        
        
          | 
            File size:
            1.9 KB
           | 
        
      
      
| Rev | Line |   | 
|---|
| [4fbca9c] | 1 | /*
 | 
|---|
 | 2 |  * PdbAtomInfoContainer.hpp
 | 
|---|
 | 3 |  *
 | 
|---|
 | 4 |  *  Created on: Dec 4, 2010
 | 
|---|
 | 5 |  *      Author: heber
 | 
|---|
 | 6 |  */
 | 
|---|
 | 7 | 
 | 
|---|
 | 8 | #ifndef PDBATOMINFOCONTAINER_HPP_
 | 
|---|
 | 9 | #define PDBATOMINFOCONTAINER_HPP_
 | 
|---|
 | 10 | 
 | 
|---|
| [56f73b] | 11 | // include config.h
 | 
|---|
 | 12 | #ifdef HAVE_CONFIG_H
 | 
|---|
 | 13 | #include <config.h>
 | 
|---|
 | 14 | #endif
 | 
|---|
 | 15 | 
 | 
|---|
 | 16 | 
 | 
|---|
| [4fbca9c] | 17 | #include "PdbKey.hpp"
 | 
|---|
 | 18 | 
 | 
|---|
| [16462f] | 19 | class Vector;
 | 
|---|
 | 20 | 
 | 
|---|
| [4fbca9c] | 21 | #include <string>
 | 
|---|
| [16462f] | 22 | #include <typeinfo>
 | 
|---|
| [4fbca9c] | 23 | 
 | 
|---|
 | 24 | /**
 | 
|---|
 | 25 |  * Holds tremolo-specific information which is not store in the atom class.
 | 
|---|
 | 26 |  */
 | 
|---|
 | 27 | class PdbAtomInfoContainer {
 | 
|---|
 | 28 | public:
 | 
|---|
 | 29 |   PdbAtomInfoContainer();
 | 
|---|
 | 30 |   ~PdbAtomInfoContainer();
 | 
|---|
 | 31 | 
 | 
|---|
 | 32 |   // getter and setter
 | 
|---|
| [16462f] | 33 |   template <class T> T get(const PdbKey::PdbDataKey key) const  {
 | 
|---|
 | 34 |     switch (key) {
 | 
|---|
 | 35 |       default :
 | 
|---|
 | 36 |         std::cout << "Unknown key or not representable as " << typeid(T).name() << ": " << key << std::endl;
 | 
|---|
 | 37 |         break;
 | 
|---|
 | 38 |     }
 | 
|---|
 | 39 |     return (T)NULL;
 | 
|---|
 | 40 |   }
 | 
|---|
| [4fbca9c] | 41 |   void set(const PdbKey::PdbDataKey key, std::string value);
 | 
|---|
 | 42 | 
 | 
|---|
 | 43 |   /** Scans a value from a short string and checks whether its empty.
 | 
|---|
 | 44 |    *
 | 
|---|
 | 45 |    * @param value value to set
 | 
|---|
 | 46 |    * @param _piece short string
 | 
|---|
 | 47 |    */
 | 
|---|
 | 48 |   template <class T> static void ScanKey(T& value, std::string _piece)
 | 
|---|
 | 49 |   {
 | 
|---|
 | 50 |     ConvertTo<T> toValue;
 | 
|---|
 | 51 |     // scan all empty chars ' ' and skip
 | 
|---|
 | 52 |     std::string::iterator iter = _piece.begin();
 | 
|---|
 | 53 |     for (;iter != _piece.end();++iter)
 | 
|---|
 | 54 |       if ((*iter != ' ') && (*iter != '\t'))
 | 
|---|
 | 55 |         break;
 | 
|---|
 | 56 |     // only set if there is something contained in the string
 | 
|---|
 | 57 |     if (iter != _piece.end()) {
 | 
|---|
 | 58 |       _piece.erase(_piece.begin(), iter);
 | 
|---|
 | 59 |       value = toValue(_piece);
 | 
|---|
 | 60 |     }
 | 
|---|
 | 61 |   }
 | 
|---|
 | 62 | 
 | 
|---|
 | 63 | private:
 | 
|---|
| [16462f] | 64 |   std::string token;
 | 
|---|
| [4fbca9c] | 65 |   int serial;
 | 
|---|
 | 66 |   std::string name;
 | 
|---|
| [16462f] | 67 |   char altLoc;
 | 
|---|
| [4fbca9c] | 68 |   std::string resName;
 | 
|---|
 | 69 |   char chainID;
 | 
|---|
 | 70 |   int resSeq;
 | 
|---|
 | 71 |   char iCode;
 | 
|---|
| [16462f] | 72 |   Vector XYZ;
 | 
|---|
| [4fbca9c] | 73 |   float occupancy;
 | 
|---|
 | 74 |   float tempFactor;
 | 
|---|
| [16462f] | 75 |   std::string element;
 | 
|---|
| [4fbca9c] | 76 |   int charge;
 | 
|---|
 | 77 | };
 | 
|---|
 | 78 | 
 | 
|---|
| [16462f] | 79 | template <>
 | 
|---|
 | 80 | std::string PdbAtomInfoContainer::get<std::string>(const PdbKey::PdbDataKey key) const;
 | 
|---|
 | 81 | template <>
 | 
|---|
 | 82 | int PdbAtomInfoContainer::get<int>(const PdbKey::PdbDataKey key) const;
 | 
|---|
 | 83 | template <>
 | 
|---|
 | 84 | double PdbAtomInfoContainer::get<double>(const PdbKey::PdbDataKey key) const;
 | 
|---|
 | 85 | 
 | 
|---|
| [4fbca9c] | 86 | #endif /* PDBATOMINFOCONTAINER_HPP_ */
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.