diff --git a/trunk/paradiseo-moeo/src/core/moeoBitVector.h b/trunk/paradiseo-moeo/src/core/moeoBitVector.h index 61ed4b7ed..2e8642de8 100644 --- a/trunk/paradiseo-moeo/src/core/moeoBitVector.h +++ b/trunk/paradiseo-moeo/src/core/moeoBitVector.h @@ -38,6 +38,15 @@ public: {} + /** + * Returns the class name as a std::string + */ + virtual std::string className() const + { + return "moeoBitVector"; + } + + /** * Writing object * @param _os output stream diff --git a/trunk/paradiseo-moeo/src/core/moeoRealVector.h b/trunk/paradiseo-moeo/src/core/moeoRealVector.h index 9c2816e18..0fa60cd06 100644 --- a/trunk/paradiseo-moeo/src/core/moeoRealVector.h +++ b/trunk/paradiseo-moeo/src/core/moeoRealVector.h @@ -30,7 +30,16 @@ public: */ moeoRealVector(unsigned int _size = 0, double _value = 0.0) : moeoVector< MOEOObjectiveVector, MOEOFitness, MOEODiversity, double >(_size, _value) {} - + + + /** + * Returns the class name as a std::string + */ + virtual std::string className() const + { + return "moeoRealVector"; + } + }; #endif /*MOEOREALVECTOR_H_*/