source: trunk/Clp/src/MyEventHandler.hpp @ 2470

Last change on this file since 2470 was 2385, checked in by unxusr, 9 months ago

formatting

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.1 KB
Line 
1/* $Id: MyEventHandler.hpp 2385 2019-01-06 19:43:06Z stefan $ */
2// Copyright (C) 2004, International Business Machines
3// Corporation and others.  All Rights Reserved.
4// This code is licensed under the terms of the Eclipse Public License (EPL).
5
6#ifndef MyEventHandler_H
7#define MyEventHandler_H
8
9#include "ClpEventHandler.hpp"
10
11/** This is so user can trap events and do useful stuff.
12    This is used in Clp/Test/unitTest.cpp
13
14    ClpSimplex model_ is available as well as anything else you care
15    to pass in
16*/
17
18class MyEventHandler : public ClpEventHandler {
19
20public:
21  /**@name Overrides */
22  //@{
23  virtual int event(Event whichEvent);
24  //@}
25
26  /**@name Constructors, destructor etc*/
27  //@{
28  /** Default constructor. */
29  MyEventHandler();
30  /// Constructor with pointer to model (redundant as setEventHandler does)
31  MyEventHandler(ClpSimplex *model);
32  /** Destructor */
33  virtual ~MyEventHandler();
34  /** The copy constructor. */
35  MyEventHandler(const MyEventHandler &rhs);
36  /// Assignment
37  MyEventHandler &operator=(const MyEventHandler &rhs);
38  /// Clone
39  virtual ClpEventHandler *clone() const;
40  //@}
41
42protected:
43  // data goes here
44};
45
46#endif
47
48/* vi: softtabstop=2 shiftwidth=2 expandtab tabstop=2
49*/
Note: See TracBrowser for help on using the repository browser.