MultiAgentDecisionProcess  Release 0.2.1
Type.h
Go to the documentation of this file.
1 
28 /* Only include this header file once. */
29 #ifndef _TYPE_H_
30 #define _TYPE_H_ 1
31 
32 /* the include directives */
33 #include "Globals.h"
34 
40 class Type
41 {
42  public:
44  private:
45 
46  protected:
48 
49  public:
50  // Constructor, destructor and copy assignment.
52 
54  : _m_sc(s) {};
56  virtual ~Type() {};
58  Type(const Type& a)
59  : _m_sc(a._m_sc) {};
60 
62  Type& operator= (const Type& o)
63  {
64  if (this == &o) return *this; // Gracefully handle self assignment
65  // Put the normal assignment duties here...
66  _m_sc = o._m_sc;
67  return *this;
68  }
69 
70 
71 
72  virtual Type* Clone() const=0;
73  //operators:
74 
75  //data manipulation (set) functions:
76 
77  //get (data) functions:
79  {return _m_sc;};
80  virtual std::string SoftPrint () const = 0;
81 };
82 
83 
84 #endif /* !_TYPE_H_ */
85 
86 // Local Variables: ***
87 // mode:c++ ***
88 // End: ***