MultiAgentDecisionProcess
Release 0.2.1
Main Page
Namespaces
Classes
Files
File List
File Members
E.h
Go to the documentation of this file.
1
28
/* Only include this header file once. */
29
#ifndef _E_H_
30
#define _E_H_ 1
31
32
/* the include directives */
33
#include <iostream>
34
#include <string>
35
#include <sstream>
36
38
class
E
39
{
40
private
:
41
42
protected
:
43
44
public
:
45
47
std::string
_m_error
;
48
49
// Constructor, destructor and copy assignment.
50
52
E
(
const
char
* arg):
_m_error
(arg) {}
54
E
(std::string arg) :
_m_error
(arg) {}
56
E
(
const
std::stringstream& arg) :
_m_error
(arg.str()) {}
57
59
virtual
~E
(){};
60
62
std::string
SoftPrint
()
const
{
return
_m_error
;}
64
void
Print
()
const
65
{ std::cout <<
"ERROR: "
<<
_m_error
<< std::endl;}
66
};
67
68
69
#endif
/* !_E_H_ */
70
71
72
// Local Variables: ***
73
// mode:c++ ***
74
// End: ***
src
base
E.h
Generated on Mon Sep 23 2013 14:50:05 for MultiAgentDecisionProcess by
1.8.1.2