source: src/Bond/bond_observable.hpp@ 37fe17

Adding_MD_integration_tests Adding_StructOpt_integration_tests AutomationFragmentation_failures Candidate_v1.6.1 ChemicalSpaceEvaluator Enhanced_StructuralOptimization Enhanced_StructuralOptimization_continued Exclude_Hydrogens_annealWithBondGraph ForceAnnealing_with_BondGraph ForceAnnealing_with_BondGraph_contraction-expansion Gui_displays_atomic_force_velocity JobMarket_RobustOnKillsSegFaults JobMarket_StableWorkerPool PythonUI_with_named_parameters StoppableMakroAction TremoloParser_IncreasedPrecision
Last change on this file since 37fe17 was 1f693d, checked in by Frederik Heber <heber@…>, 12 years ago

Wrapped Bond::BondDegree in getter.

  • Property mode set to 100644
File size: 782 bytes
Line 
1/*
2 * bond_observable.hpp
3 *
4 * Created on: Jan 5, 2012
5 * Author: heber
6 */
7
8#ifndef BOND_OBSERVABLE_HPP_
9#define BOND_OBSERVABLE_HPP_
10
11// include config.h
12#ifdef HAVE_CONFIG_H
13#include <config.h>
14#endif
15
16
17#include "CodePatterns/Observer/Channels.hpp"
18#include "CodePatterns/Observer/Observable.hpp"
19
20#include <map>
21
22/** This class encapsulates Observable pattern along with required notification
23 * types.
24 */
25class BondObservable : public Observable
26{
27public:
28 enum NotificationType {
29 BondRemoved, // bond is about to be removed
30 DegreeChanged, // bond degree is different
31 NotificationType_MAX // denotes the maximum of available notification types
32 };
33
34 BondObservable();
35 virtual ~BondObservable();
36};
37
38
39#endif /* BOND_OBSERVABLE_HPP_ */
Note: See TracBrowser for help on using the repository browser.