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

Last change on this file since 1370 was 1370, checked in by forrest, 11 years ago

add ids

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