X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/1b6152a8b901df0e8b57c35b9846a6e609b8b7df..44a1ffd370d5b3c7f987e54beecca63a7b9d8297:/src/clave_fija.h?ds=sidebyside diff --git a/src/clave_fija.h b/src/clave_fija.h index b11fe22..e70cd52 100644 --- a/src/clave_fija.h +++ b/src/clave_fija.h @@ -3,14 +3,29 @@ #define _CLAVE_FIJA_H_ #include "clave.h" +#include +#include -class ClaveFija : Clave { +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; + 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; };