X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/a57a70eab1f0b259f3b488a58e1812b262455b33..59b7476481f01388fcfd13492adbba7ef841755c:/src/clave_fija.h diff --git a/src/clave_fija.h b/src/clave_fija.h index aa6e712..d04baf9 100644 --- a/src/clave_fija.h +++ b/src/clave_fija.h @@ -3,16 +3,29 @@ #define _CLAVE_FIJA_H_ #include "clave.h" +#include +#include class ClaveFija : public Clave { public : ClaveFija (uchar *n); - ClaveFija (int n); + ClaveFija (int n, uint data); virtual ~ClaveFija () {} 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; };