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

Last change on this file since 755 was 755, checked in by andreasw, 14 years ago

finished Clp (create now bin/clp_solver)

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