COPASI API  4.16.103
Cxerrwd.h
Go to the documentation of this file.
1 /* Begin CVS Header
2  $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/odepack++/Cxerrwd.h,v $
3  $Revision: 1.5 $
4  $Name: $
5  $Author: shoops $
6  $Date: 2009/01/07 19:01:06 $
7  End CVS Header */
8 
9 // Copyright (C) 2008 by Pedro Mendes, Virginia Tech Intellectual
10 // Properties, Inc., EML Research, gGmbH, University of Heidelberg,
11 // and The University of Manchester.
12 // All rights reserved.
13 
14 // Copyright (C) 2001 - 2007 by Pedro Mendes, Virginia Tech Intellectual
15 // Properties, Inc. and EML Research, gGmbH.
16 // All rights reserved.
17 //
18 // This C++ code is based on an f2c conversion of the Fortran
19 // library ODEPACK available at: http://www.netlib.org/odepack/
20 
21 #ifndef ODEPACK_xerrwd
22 #define ODEPACK_xerrwd
23 
24 #include <iostream>
25 #include <string>
26 
27 class Cxerrwd
28  {
29  public:
30  Cxerrwd(const bool & print);
31 
32  ~Cxerrwd();
33 
34  void operator() (const std::string & msg, const C_INT *nmes, const C_INT *nerr, const C_INT
35  *level, const C_INT *ni, const C_INT *i1, const C_INT *i2, const C_INT *nr,
36  const double *r1, const double *r2, C_INT msg_len);
37 
38  void setOstream(std::ostream & os);
39  void enablePrint(const bool & print = true);
40 
41  private:
42  bool mPrint;
43  std::ostream * mpOstream;
44  };
45 
46 #endif // ODEPACK_xerrwd
#define C_INT
Definition: copasi.h:115
void setOstream(std::ostream &os)
Definition: Cxerrwd.cpp:32
std::ostream * mpOstream
Definition: Cxerrwd.h:43
~Cxerrwd()
Definition: Cxerrwd.cpp:30
void enablePrint(const bool &print=true)
Definition: Cxerrwd.cpp:35
void operator()(const std::string &msg, const C_INT *nmes, const C_INT *nerr, const C_INT *level, const C_INT *ni, const C_INT *i1, const C_INT *i2, const C_INT *nr, const double *r1, const double *r2, C_INT msg_len)
Definition: Cxerrwd.cpp:38
Cxerrwd(const bool &print)
Definition: Cxerrwd.cpp:25
bool mPrint
Definition: Cxerrwd.h:42