X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/226df952388af8a4955b26b1ef0b5e1784103bf5..78ac68dcad2dc4582213848e8d1a98e3b16abff1:/src/clave_fija.h diff --git a/src/clave_fija.h b/src/clave_fija.h index 280f24b..5997931 100644 --- a/src/clave_fija.h +++ b/src/clave_fija.h @@ -3,6 +3,8 @@ #define _CLAVE_FIJA_H_ #include "clave.h" +#include +#include class ClaveFija : public Clave { public : @@ -14,6 +16,14 @@ class ClaveFija : public Clave { uchar *ToArray () const; Clave *Clone () const; + virtual bool operator < (const Clave &c) const; + virtual operator std::string () const { + std::string out; + std::stringstream ss; + ss << data; + ss >> out; + return out; + } private: int data; };