File: qexception.cc

package info (click to toggle)
quelcom 0.4.0-16
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 1,544 kB
  • sloc: cpp: 4,148; makefile: 158; sh: 15
file content (25 lines) | stat: -rw-r--r-- 343 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*! \file
 * implementation functions for class qexception
 */

# include "qexception.hh"

string qexception::getInfo() {
  return info;
}

void qexception::print (ostream *os) {

#ifdef QVERBOSE
  *os << metode << ": " << info;
#else
  *os << info;
#endif
}

ostream &operator<<(ostream &os, qexception &e) {
  e.print(&os);
  return os;
}