X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/f394d7d95de33fea2b476248ac129488643beb77..57dbb7df8973a3e0c0c570c1eae9d84802e02bd9:/src/clave_fija.h diff --git a/src/clave_fija.h b/src/clave_fija.h index 280f24b..e70cd52 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 : @@ -12,8 +14,18 @@ class ClaveFija : public Clave { uint Size () const; uchar *ToArray () const; + uchar *ToRaw (uint &size) const; Clave *Clone () const; + virtual bool operator < (const Clave &c) 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; };