00001 #ifndef _RECOMMANDATION_H_ 00002 #define _RECOMMANDATION_H_ 00003 00004 #include "ObjectRef.h" 00005 #include "Vector.h" 00006 00007 namespace RobotFlow { 00008 00009 class Recommandation; 00010 00011 typedef FD::RCPtr<Recommandation> RECOMMANDATION_PTR; 00012 typedef FD::RCPtr< FD::Vector<RECOMMANDATION_PTR> > RECOMMANDATION_VECTOR_PTR; 00013 00014 class Recommandation: public FD::Object 00015 { 00016 protected: 00017 00018 int m_desirable; 00019 00020 int m_undesirable; 00021 00022 public: 00023 00024 Recommandation(); 00025 00026 Recommandation(const Recommandation &recommandation); 00027 00028 virtual void printOn(std::ostream &out=std::cout) const; 00029 00030 virtual void readFrom(std::istream &in); 00031 00032 int getDesirable(); 00033 00034 int getRecommandation(); 00035 00036 int getUndesirable(); 00037 00038 void reset(); 00039 00040 void setDesirable(int desirable); 00041 00042 void setUndesirable(int undesirable); 00043 00044 Recommandation &operator=(Recommandation a); 00045 00046 Recommandation &operator+=(Recommandation a); 00047 00048 Recommandation operator+(Recommandation a); 00049 00050 }; 00051 00052 }//namespace RobotFlow 00053 00054 #endif //_RECOMMANDATION_H_ 00055