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

Last change on this file since 1525 was 1525, checked in by mjs, 10 years ago

Formatted .cpp, .hpp, .c, .h files with "astyle -A4 -p". This matches the formatting used in the grand CBC reorganization.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.1 KB
Line 
1/* $Id: MyEventHandler.hpp 1525 2010-02-26 17:27:59Z mjs $ */
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.