MultiAgentDecisionProcess
Release 0.2.1
Main Page
Namespaces
Classes
Files
File List
File Members
NamedDescribedEntity.h
Go to the documentation of this file.
1
28
/* Only include this header file once. */
29
#ifndef _NAMED_DESCRIBED_ENTITY_H_
30
#define _NAMED_DESCRIBED_ENTITY_H_ 1
31
32
/* the include directives */
33
#include <iostream>
34
#include <string>
35
#include "
Globals.h
"
36
38
39
class
NamedDescribedEntity
40
{
41
private
:
42
43
protected
:
45
std::string*
_m_name
;
47
std::string*
_m_description
;
48
49
public
:
50
// Constructor, destructor and copy assignment.
52
NamedDescribedEntity
(std::string name=std::string(
"undefined"
), std::string \
53
description=std::string(
"undefined"
));
55
NamedDescribedEntity
(
const
NamedDescribedEntity
&);
57
virtual
~NamedDescribedEntity
();
58
// 'get' functions:
60
std::string
GetName
()
const
{
return
*
_m_name
;};
62
std::string
GetDescription
()
const
{
return
*
_m_description
;};
63
65
void
SetName
(std::string name){
66
*
_m_name
=name;
67
}
68
70
void
SetDescription
(std::string description){
71
*
_m_description
=description;
72
}
73
75
virtual
std::string
SoftPrint
()
const
;
77
virtual
std::string
SoftPrintBrief
()
const
;
79
void
Print
()
const
{std::cout <<
SoftPrint
();}
81
void
PrintBrief
()
const
{std::cout <<
SoftPrintBrief
(); }
82
};
83
84
#endif
/* !_NAMED_DESCRIBED_ENTITY_H_ */
85
86
87
// Local Variables: ***
88
// mode:c++ ***
89
// End: ***
src
base
NamedDescribedEntity.h
Generated on Mon Sep 23 2013 14:50:05 for MultiAgentDecisionProcess by
1.8.1.2