X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/a29f1d77b546e8138258493e25eb23e72a5324f3..52d9e098f15ad0ca70f11b4549f3d55f55a22a83:/src/clave_fija.h?ds=sidebyside diff --git a/src/clave_fija.h b/src/clave_fija.h index f092250..5997931 100644 --- a/src/clave_fija.h +++ b/src/clave_fija.h @@ -3,14 +3,27 @@ #define _CLAVE_FIJA_H_ #include "clave.h" +#include +#include class ClaveFija : public Clave { public : + ClaveFija (uchar *n); + ClaveFija (int n); virtual ~ClaveFija () {} - virtual uint Size (); - virtual uchar *ToArray (); + uint Size () const; + 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; };