Ignore:
Timestamp:
Oct 20, 2011, 10:42:16 PM (14 years ago)
Author:
Frederik Heber <heber@…>
Branches:
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
Children:
f94953
Parents:
fa9d1d (diff), 752bb4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Frederik Heber <heber@…> (10/20/11 22:40:59)
git-committer:
Frederik Heber <heber@…> (10/20/11 22:42:16)
Message:

Merge branch 'Adding_Psi3Parser' into stable

Conflicts:

src/Parser/FormatParser.hpp
src/Parser/unittests/ParserTremoloUnitTest.cpp

Issues:

  • Element and periodentafel have been moved to folder src/Element.
File:
1 moved

Legend:

Unmodified
Added
Removed
  • src/Parser/FormatParser_common.cpp

    rfa9d1d r360c8b  
    77
    88/*
    9  * FormatParser.cpp
     9 * FormatParser_common_common.cpp
    1010 *
    1111 *  Created on: Mar 1, 2010
     
    2020#include "CodePatterns/MemDebug.hpp"
    2121
    22 #include "FormatParser.hpp"
    2322#include <iostream>
     23
     24#include "CodePatterns/Observer.hpp"
     25#include "World.hpp"
     26#include "ChangeTracker.hpp"
     27#include "FormatParser_common.hpp"
    2428
    2529using namespace std;
     
    2832 * Constructor.
    2933 */
    30 FormatParser::FormatParser() :
    31   Observer("FormatParser"),
    32   parameters(NULL),
    33   saveStream(NULL)
     34FormatParser_common::FormatParser_common(FormatParser_Parameters *_parameters) :
     35  Observer("FormatParser_common")
    3436{
     37  parameters = _parameters;
    3538  ChangeTracker::getInstance().signOn(this);
    3639  World::getInstance().signOn(this, World::getInstance().getChannel(World::AtomInserted));
     
    4144 * Destructor.
    4245 */
    43 FormatParser::~FormatParser() {
     46FormatParser_common::~FormatParser_common()
     47{
    4448  ChangeTracker::getInstance().signOff(this);
    4549  World::getInstance().signOff(this, World::getInstance().getChannel(World::AtomInserted));
    4650  World::getInstance().signOff(this, World::getInstance().getChannel(World::AtomRemoved));
     51  if (parameters != NULL)
     52    delete parameters;
    4753}
    4854
     
    5157 * change tracker here).
    5258 */
    53 void FormatParser::update(Observable *publisher) {
     59void FormatParser_common::update(Observable *publisher) {
    5460  if (!saveStream) {
    5561    cerr << "Please invoke setOstream() so the parser knows where to save the World's data." << endl;
     
    6470 * With this, each format parser is informed about specific changes in the World.
    6571 */
    66 void FormatParser::recieveNotification(Observable *publisher, Notification_ptr notification) {
     72void FormatParser_common::recieveNotification(Observable *publisher, Notification_ptr notification) {
    6773  switch (notification->getChannelNo()) {
    6874    case World::AtomInserted:
     
    7480    default:
    7581      ASSERT(0,
    76           "FormatParser::recieveNotification() - unknown notification "
     82          "FormatParser_common::recieveNotification() - unknown notification "
    7783          +toString(notification->getChannelNo())+" received.");
    7884      break;
     
    8389 * The observable can tell when it dies.
    8490 */
    85 void FormatParser::subjectKilled(Observable *publisher) {}
    86 
     91void FormatParser_common::subjectKilled(Observable *publisher) {}
    8792
    8893/**
     
    9297 * \param ostream where to save the World's state
    9398 */
    94 void FormatParser::setOstream(ostream* output) {
     99void FormatParser_common::setOstream(ostream* output) {
    95100  saveStream = output;
    96101}
Note: See TracChangeset for help on using the changeset viewer.